-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add unit tests #284
Add unit tests #284
Conversation
d901117
to
4337923
Compare
ParsingException expectedException = new ParsingException(resultException.getCause(), Messages.CANNOT_CONVERT_JSON_STREAM_TO_MAP, | ||
errorMessage, invalidJsonInputStream); | ||
Assertions.assertEquals(expectedException.getMessage(), resultException.getMessage()); | ||
ParsingException expectedException = new ParsingException(resultException.getCause(), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe remove this exception construction and just add a check for equals(Messages.CANNOT...
as everything else seems to be taken from the exception we're checking anyway
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But the messages is different is not done this way.
double testDouble = 45.67; | ||
List<Object> originalList = Arrays.asList("String", testNumber, testDouble); | ||
|
||
List<String> castedList = ListUtil.cast(originalList); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
past tense of 'cast' is 'cast' 😄
} | ||
|
||
@Test | ||
void testMergeSafely_withBothMapsNonNull() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe add a the same key to both maps to check if it's overwritten correctly in this test.
4337923
to
b7e7990
Compare
b7e7990
to
b837f7b
Compare
Quality Gate passedIssues Measures |
No description provided.