use of org.springframework.aop.MethodMatcher in project spring-framework by spring-projects.
the class MethodMatchersTests method testUnionEquals.
@Test
public void testUnionEquals() {
MethodMatcher first = MethodMatchers.union(MethodMatcher.TRUE, MethodMatcher.TRUE);
MethodMatcher second = new ComposablePointcut(MethodMatcher.TRUE).union(new ComposablePointcut(MethodMatcher.TRUE)).getMethodMatcher();
assertThat(first.equals(second)).isTrue();
assertThat(second.equals(first)).isTrue();
}
Aggregations