mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-07-30 14:13:32 +00:00
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
|
* the pattern to use
|
||||||
*/
|
*/
|
||||||
public SimpDestinationMessageMatcher(String pattern) {
|
public SimpDestinationMessageMatcher(String pattern) {
|
||||||
this(pattern, null);
|
this(pattern, new AntPathMatcher());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -45,6 +45,10 @@ public class SimpDestinationMessageMatcherTests {
|
|||||||
new SimpDestinationMessageMatcher(null);
|
new SimpDestinationMessageMatcher(null);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void constructorOnlyPathNoError() {
|
||||||
|
new SimpDestinationMessageMatcher("/path");
|
||||||
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void matchesDoesNotMatchNullDestination() throws Exception {
|
public void matchesDoesNotMatchNullDestination() throws Exception {
|
||||||
assertThat(matcher.matches(messageBuilder.build())).isFalse();
|
assertThat(matcher.matches(messageBuilder.build())).isFalse();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user