Closed matanpugach closed 5 years ago
Done. Please review! The coverage is maximized. can't do better.
Your tests are good, but the use of assertions needs to match the required (look at assertTrue,assertFalse, and equals) :)
Use the annotation "@Test(expected = MyException.class)" to ensure that an exception is thrown in a test.
There is no reason to use assert instead of azzert here: for that we have azzert.isNull and azzert.notNull
Is there no way to ue the fluent API that&is here: Since assertArrayEquals is not part of the fluent API I would prefer that you not use it.
Please use azzert instead of Assert such as in this picture:
It's not a huge issue in my opinion but Arrays.emptyList() would be much better in my opinion in cases such as these (since it's declarative immutable and the variable is final anyway):
Please fix these and submit for re-review, Thank you.
Couldn't find a suitable for Arrays.emptyList() would. Thanks so much for the awesome feedback! Updated accordingly 😄
why there are a lot of unchecked null branches ?
@ofiralexi as stated, i couldn't reach those cases.
LGTM #79
96