mirror of
https://github.com/spring-projects/spring-security.git
synced 2025-06-23 20:42:14 +00:00
Fix tests in AntPathRequestMatcherTests
Closes gh-11090
This commit is contained in:
parent
e1f649690b
commit
bc50146f60
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2002-2021 the original author or authors.
|
* Copyright 2002-2022 the original author or authors.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
@ -93,10 +93,10 @@ public class AntPathRequestMatcherTests {
|
|||||||
AntPathRequestMatcher matcher = new AntPathRequestMatcher("/**/{id}");
|
AntPathRequestMatcher matcher = new AntPathRequestMatcher("/**/{id}");
|
||||||
assertThat(matcher.matches(createRequest("/blah/1234"))).isTrue();
|
assertThat(matcher.matches(createRequest("/blah/1234"))).isTrue();
|
||||||
assertThat(matcher.matches(createRequest("/bleh/4567"))).isTrue();
|
assertThat(matcher.matches(createRequest("/bleh/4567"))).isTrue();
|
||||||
assertThat(matcher.matches(createRequest("/paskos/blah/"))).isTrue();
|
assertThat(matcher.matches(createRequest("/paskos/blah/"))).isFalse();
|
||||||
assertThat(matcher.matches(createRequest("/12345/blah/xxx"))).isTrue();
|
assertThat(matcher.matches(createRequest("/12345/blah/xxx"))).isTrue();
|
||||||
assertThat(matcher.matches(createRequest("/12345/blaha"))).isTrue();
|
assertThat(matcher.matches(createRequest("/12345/blaha"))).isTrue();
|
||||||
assertThat(matcher.matches(createRequest("/paskos/bleh/"))).isTrue();
|
assertThat(matcher.matches(createRequest("/paskos/bleh/"))).isFalse();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
|
Loading…
x
Reference in New Issue
Block a user