This commit is contained in:
Madhura Bhave 2021-07-13 15:18:17 -07:00
parent 7848cf3c79
commit 23b377e1a1
1 changed files with 4 additions and 4 deletions

View File

@ -51,22 +51,22 @@ class WebOperationRequestPredicateTests {
} }
@Test @Test
void predicatesWithSinglePathVariablesInTheSamplePlaceAreEqual() { void predicatesWithSinglePathVariablesInTheSamePlaceAreEqual() {
assertThat(predicateWithPath("/path/{foo1}")).isEqualTo(predicateWithPath("/path/{foo2}")); assertThat(predicateWithPath("/path/{foo1}")).isEqualTo(predicateWithPath("/path/{foo2}"));
} }
@Test @Test
void predicatesWithSingleWildcardPathVariablesInTheSamplePlaceAreEqual() { void predicatesWithSingleWildcardPathVariablesInTheSamePlaceAreEqual() {
assertThat(predicateWithPath("/path/{*foo1}")).isEqualTo(predicateWithPath("/path/{*foo2}")); assertThat(predicateWithPath("/path/{*foo1}")).isEqualTo(predicateWithPath("/path/{*foo2}"));
} }
@Test @Test
void predicatesWithSingleWildcardPathVariableAndRegularVariableInTheSamplePlaceAreNotEqual() { void predicatesWithSingleWildcardPathVariableAndRegularVariableInTheSamePlaceAreNotEqual() {
assertThat(predicateWithPath("/path/{*foo1}")).isNotEqualTo(predicateWithPath("/path/{foo2}")); assertThat(predicateWithPath("/path/{*foo1}")).isNotEqualTo(predicateWithPath("/path/{foo2}"));
} }
@Test @Test
void predicatesWithMultiplePathVariablesInTheSamplePlaceAreEqual() { void predicatesWithMultiplePathVariablesInTheSamePlaceAreEqual() {
assertThat(predicateWithPath("/path/{foo1}/more/{bar1}")) assertThat(predicateWithPath("/path/{foo1}/more/{bar1}"))
.isEqualTo(predicateWithPath("/path/{foo2}/more/{bar2}")); .isEqualTo(predicateWithPath("/path/{foo2}/more/{bar2}"));
} }