Skip to content

Conversation

roimenashe
Copy link
Member

No description provided.

@roimenashe roimenashe added the enhancement New feature or request label Dec 30, 2021
@roimenashe roimenashe requested a review from reugn December 30, 2021 10:12
@roimenashe roimenashe self-assigned this Dec 30, 2021
Comment on lines +53 to +58
try {
mapper.save(placeHolderModel1);
fail();
} catch (AerospikeException ae) {
assertTrue(true);
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You could use

assertThrows(AerospikeException.class, () -> {
    mapper.save(placeHolderModel1);
});

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Aligned with the rest of the tests failure logic, I guess you are right but we can change it for all tests in another dedicative PR?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure.

@roimenashe roimenashe requested a review from reugn December 30, 2021 10:49
@roimenashe roimenashe merged commit c6f192e into main Dec 30, 2021
@roimenashe roimenashe deleted the namespace-placeholder-test branch December 30, 2021 10:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants