SEC-2827: Polish
This commit is contained in:
+1
-1
@@ -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());
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
+4
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user