SEC-2827: Polish

This commit is contained in:
Rob Winch 2015-01-23 17:41:20 -06:00
parent 414f98bee0
commit 753fdcaef0
2 changed files with 5 additions and 1 deletions

View File

@ -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());
}
/**

View File

@ -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();