Class org.springframework.context.event.AnnotationDrivenEventListenerTests

31

tests

0

failures

1

ignored

1.222s

duration

100%

successful

Tests

Test Duration Result
arrayReply 0.007s passed
asyncProcessingApplied 0.038s passed
asyncProcessingAppliedWithInterfaceProxy 0.029s passed
asyncProcessingAppliedWithScopedProxy 0.024s passed
collectionReply 0.008s passed
collectionReplyNullValue 0.008s passed
conditionDoesNotMatch 0.009s passed
conditionMatch 0.021s passed
conditionMatchWithProxy 0.765s passed
contextEventsAreReceived 0.012s passed
eventListenerWorksWithAnnotatedInterfaceProxy 0.014s passed
eventListenerWorksWithCglibProxy 0.020s passed
eventListenerWorksWithCustomScope 0.018s passed
eventListenerWorksWithSimpleInterfaceProxy 0.036s passed
exceptionNotPropagatedWithAsync 0.029s passed
exceptionPropagated 0.007s passed
listenerWithGenericApplicationEvent 0.011s passed
listenerWithNonMatchingPayload 0.007s passed
listenerWithResolvableTypeEvent 0.012s passed
listenerWithResolvableTypeEventWrongGeneric 0.007s passed
listenerWithSimplePayload 0.007s passed
listenersReceiveEarlyEvents - ignored
metaAnnotationIsDiscovered 0.010s passed
methodSignatureNoEvent 0.009s passed
nullReplyIgnored 0.011s passed
orderedListeners 0.014s passed
privateMethodOnCglibProxyFails 0.018s passed
replyWithPayload 0.008s passed
simpleEventJavaConfig 0.006s passed
simpleEventXmlConfig 0.045s passed
simpleReply 0.012s passed

Standard output

16:45:42.728 [Test worker] WARN  org.springframework.context.annotation.AnnotationConfigApplicationContext - Exception  encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanInitializationException: Failed to process @EventListener annotation on bean with name 'annotationDrivenEventListenerTests.InvalidMethodSignatureEventListener'; nested exception is java.lang.IllegalStateException: Maximum one parameter is allowed for event listener method: public void org.springframework.context.event.AnnotationDrivenEventListenerTests$InvalidMethodSignatureEventListener.cannotBeCalled(java.lang.String,java.lang.Integer)
16:45:42.873 [Test worker] WARN  org.springframework.context.annotation.AnnotationConfigApplicationContext - Exception  encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanInitializationException: Failed to process @EventListener annotation on bean with name 'annotationDrivenEventListenerTests.CglibProxyWithPrivateMethod'; nested exception is java.lang.IllegalStateException: Need to invoke method 'handleIt' found on proxy for target class 'CglibProxyWithPrivateMethod' but cannot be delegated to target bean. Switch its visibility to package or protected.
16:45:43.738 [SimpleAsyncTaskExecutor-1] ERROR org.springframework.aop.interceptor.SimpleAsyncUncaughtExceptionHandler - Unexpected error occurred invoking async method: public void org.springframework.context.event.AnnotationDrivenEventListenerTests$ExceptionEventListener.handleAsync(org.springframework.context.event.test.AnotherTestEvent)
java.lang.IllegalStateException: Test exception
	at org.springframework.context.event.AnnotationDrivenEventListenerTests$ExceptionEventListener.handleAsync(AnnotationDrivenEventListenerTests.java:735) ~[test/:?]
	at org.springframework.context.event.AnnotationDrivenEventListenerTests$ExceptionEventListener$$FastClassBySpringCGLIB$$356572e3.invoke(<generated>) ~[test/:?]
	at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204) ~[spring-core-5.0.15.BUILD-SNAPSHOT.jar:5.0.15.BUILD-SNAPSHOT]
	at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:746) ~[spring-aop-5.0.15.BUILD-SNAPSHOT.jar:5.0.15.BUILD-SNAPSHOT]
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:162) ~[spring-aop-5.0.15.BUILD-SNAPSHOT.jar:5.0.15.BUILD-SNAPSHOT]
	at org.springframework.aop.interceptor.AsyncExecutionInterceptor.lambda$invoke$0(AsyncExecutionInterceptor.java:115) ~[spring-aop-5.0.15.BUILD-SNAPSHOT.jar:5.0.15.BUILD-SNAPSHOT]
	at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_131]
	at java.lang.Thread.run(Thread.java:748) [?:1.8.0_131]