|
@@ -116,8 +116,8 @@ public class PostFilterAuthorizationReactiveMethodInterceptorTests {
|
|
|
|
|
|
@Test
|
|
@Test
|
|
public void checkInheritedAnnotationsWhenConflictingThenAnnotationConfigurationException() throws Exception {
|
|
public void checkInheritedAnnotationsWhenConflictingThenAnnotationConfigurationException() throws Exception {
|
|
- MockMethodInvocation methodInvocation = new MockMethodInvocation(new ConflictingAnnotations(),
|
|
|
|
- ConflictingAnnotations.class, "inheritedAnnotations");
|
|
|
|
|
|
+ MockMethodInvocation methodInvocation = new MockMethodInvocation(new TestClass(), TestClass.class,
|
|
|
|
+ "inheritedAnnotations");
|
|
PostFilterAuthorizationReactiveMethodInterceptor interceptor = new PostFilterAuthorizationReactiveMethodInterceptor();
|
|
PostFilterAuthorizationReactiveMethodInterceptor interceptor = new PostFilterAuthorizationReactiveMethodInterceptor();
|
|
assertThatExceptionOfType(AnnotationConfigurationException.class)
|
|
assertThatExceptionOfType(AnnotationConfigurationException.class)
|
|
.isThrownBy(() -> interceptor.invoke(methodInvocation));
|
|
.isThrownBy(() -> interceptor.invoke(methodInvocation));
|
|
@@ -155,16 +155,6 @@ public class PostFilterAuthorizationReactiveMethodInterceptorTests {
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
- public static class ConflictingAnnotations implements InterfaceAnnotationsThree {
|
|
|
|
-
|
|
|
|
- @Override
|
|
|
|
- @PostFilter("filterObject == 'jack'")
|
|
|
|
- public void inheritedAnnotations() {
|
|
|
|
-
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
public interface InterfaceAnnotationsOne {
|
|
public interface InterfaceAnnotationsOne {
|
|
|
|
|
|
@PostFilter("filterObject == 'jim'")
|
|
@PostFilter("filterObject == 'jim'")
|