Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
Signed-off-by: Dominik Guggemos <dominik.guggemos@bosch-si.com>
  • Loading branch information
dguggemos committed Feb 21, 2018
1 parent e599e21 commit ecb6577
Showing 1 changed file with 11 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -113,11 +113,20 @@ public void createInstanceWithNullSources() {
}

@Test
public void createInstanceWithNullTarget() {
public void createInstanceWithNullEventTarget() {
assertThatExceptionOfType(NullPointerException.class)
.isThrownBy(
() -> ImmutableAmqpConnectionBuilder.of(ID, TYPE, URI, AUTHORIZATION_SUBJECT).eventTarget(null))
.withMessage("The %s must not be null!", "Target")
.withMessage("The %s must not be null!", "eventTarget")
.withNoCause();
}

@Test
public void createInstanceWithNullReplyTarget() {
assertThatExceptionOfType(NullPointerException.class)
.isThrownBy(
() -> ImmutableAmqpConnectionBuilder.of(ID, TYPE, URI, AUTHORIZATION_SUBJECT).replyTarget(null))
.withMessage("The %s must not be null!", "replyTarget")
.withNoCause();
}

Expand Down

0 comments on commit ecb6577

Please sign in to comment.