SEC-2827: Polish
This commit is contained in:
parent
414f98bee0
commit
753fdcaef0
|
@ -81,7 +81,7 @@ public final class SimpDestinationMessageMatcher implements MessageMatcher<Objec
|
|||
* the pattern to use
|
||||
*/
|
||||
public SimpDestinationMessageMatcher(String pattern) {
|
||||
this(pattern, null);
|
||||
this(pattern, new AntPathMatcher());
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -45,6 +45,10 @@ public class SimpDestinationMessageMatcherTests {
|
|||
new SimpDestinationMessageMatcher(null);
|
||||
}
|
||||
|
||||
public void constructorOnlyPathNoError() {
|
||||
new SimpDestinationMessageMatcher("/path");
|
||||
}
|
||||
|
||||
@Test
|
||||
public void matchesDoesNotMatchNullDestination() throws Exception {
|
||||
assertThat(matcher.matches(messageBuilder.build())).isFalse();
|
||||
|
|
Loading…
Reference in New Issue