# Class org.springframework.scheduling.annotation.AsyncAnnotationBeanPostProcessorTests

11 tests | 0 failures | 0 ignored | 0.184s duration

100%

successful

- Tests
- Standard output

## Tests

Test | Duration | Result
--- | --- | ---
configuredThroughNamespace | 0.095s | passed
exceptionHandlerThrowsUnexpectedException | 0.007s | passed
handleExceptionWithCustomExceptionHandler | 0.001s | passed
handleExceptionWithFuture | 0.046s | passed
handleExceptionWithListenableFuture | 0.017s | passed
invokedAsynchronously | 0.002s | passed
invokedAsynchronouslyOnProxyTarget | 0.003s | passed
proxyCreated | 0.001s | passed
taskExecutorByBeanName | 0.005s | passed
taskExecutorByBeanType | 0.005s | passed
threadNamePrefix | 0.002s | passed

## Standard output

    16:45:57.994 [Test worker] ERROR org.springframework.scheduling.annotation.AnnotationAsyncExecutionInterceptor - Exception handler for async method 'public void org.springframework.scheduling.annotation.AsyncAnnotationBeanPostProcessorTests$TestBean.failWithVoid()' threw unexpected exception itself
    java.lang.IllegalStateException: Test exception
    	at org.springframework.scheduling.annotation.TestableAsyncUncaughtExceptionHandler.handleUncaughtException(TestableAsyncUncaughtExceptionHandler.java:53) ~[test/:?]
    	at org.springframework.aop.interceptor.AsyncExecutionAspectSupport.handleError(AsyncExecutionAspectSupport.java:308) ~[spring-aop-5.0.15.BUILD-SNAPSHOT.jar:5.0.15.BUILD-SNAPSHOT]
    	at org.springframework.aop.interceptor.AsyncExecutionInterceptor.lambda$invoke$0(AsyncExecutionInterceptor.java:124) ~[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 org.springframework.scheduling.annotation.AsyncAnnotationBeanPostProcessorTests$DirectExecutor.execute(AsyncAnnotationBeanPostProcessorTests.java:349) [test/:?]
    	at org.springframework.core.task.support.TaskExecutorAdapter.doExecute(TaskExecutorAdapter.java:175) [spring-core-5.0.15.BUILD-SNAPSHOT.jar:5.0.15.BUILD-SNAPSHOT]
    	at org.springframework.core.task.support.TaskExecutorAdapter.submit(TaskExecutorAdapter.java:126) [spring-core-5.0.15.BUILD-SNAPSHOT.jar:5.0.15.BUILD-SNAPSHOT]
    	at org.springframework.aop.interceptor.AsyncExecutionAspectSupport.doSubmit(AsyncExecutionAspectSupport.java:284) [spring-aop-5.0.15.BUILD-SNAPSHOT.jar:5.0.15.BUILD-SNAPSHOT]
    	at org.springframework.aop.interceptor.AsyncExecutionInterceptor.invoke(AsyncExecutionInterceptor.java:129) [spring-aop-5.0.15.BUILD-SNAPSHOT.jar:5.0.15.BUILD-SNAPSHOT]
    	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186) [spring-aop-5.0.15.BUILD-SNAPSHOT.jar:5.0.15.BUILD-SNAPSHOT]
    	at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:230) [spring-aop-5.0.15.BUILD-SNAPSHOT.jar:5.0.15.BUILD-SNAPSHOT]
    	at org.springframework.scheduling.annotation.$Proxy306.failWithVoid(Unknown Source) [?:?]
    	at org.springframework.scheduling.annotation.AsyncAnnotationBeanPostProcessorTests.exceptionHandlerThrowsUnexpectedException(AsyncAnnotationBeanPostProcessorTests.java:262) [test/:?]
    	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_131]
    	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_131]
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_131]
    	at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_131]
    	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50) [junit-4.12.jar:4.12]
    	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) [junit-4.12.jar:4.12]
    	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47) [junit-4.12.jar:4.12]
    	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) [junit-4.12.jar:4.12]
    	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325) [junit-4.12.jar:4.12]
    	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:78) [junit-4.12.jar:4.12]
    	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:57) [junit-4.12.jar:4.12]
    	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) [junit-4.12.jar:4.12]
    	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) [junit-4.12.jar:4.12]
    	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) [junit-4.12.jar:4.12]
    	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) [junit-4.12.jar:4.12]
    	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) [junit-4.12.jar:4.12]
    	at org.junit.runners.ParentRunner.run(ParentRunner.java:363) [junit-4.12.jar:4.12]
    	at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassExecuter.runTestClass(JUnitTestClassExecuter.java:114) [gradle-testing-jvm-4.4.1.jar:4.4.1]
    	at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassExecuter.execute(JUnitTestClassExecuter.java:57) [gradle-testing-jvm-4.4.1.jar:4.4.1]
    	at org.gradle.api.internal.tasks.testing.junit.JUnitTestClassProcessor.processTestClass(JUnitTestClassProcessor.java:66) [gradle-testing-jvm-4.4.1.jar:4.4.1]
    	at org.gradle.api.internal.tasks.testing.SuiteTestClassProcessor.processTestClass(SuiteTestClassProcessor.java:51) [gradle-testing-base-4.4.1.jar:4.4.1]
    	at sun.reflect.GeneratedMethodAccessor55.invoke(Unknown Source) ~[?:?]
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_131]
    	at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_131]
    	at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:35) [gradle-messaging-4.4.1.jar:4.4.1]
    	at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24) [gradle-messaging-4.4.1.jar:4.4.1]
    	at org.gradle.internal.dispatch.ContextClassLoaderDispatch.dispatch(ContextClassLoaderDispatch.java:32) [gradle-messaging-4.4.1.jar:4.4.1]
    	at org.gradle.internal.dispatch.ProxyDispatchAdapter$DispatchingInvocationHandler.invoke(ProxyDispatchAdapter.java:93) [gradle-messaging-4.4.1.jar:4.4.1]
    	at com.sun.proxy.$Proxy1.processTestClass(Unknown Source) [?:?]
    	at org.gradle.api.internal.tasks.testing.worker.TestWorker.processTestClass(TestWorker.java:108) [gradle-testing-base-4.4.1.jar:4.4.1]
    	at sun.reflect.GeneratedMethodAccessor54.invoke(Unknown Source) ~[?:?]
    	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_131]
    	at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_131]
    	at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:35) [gradle-messaging-4.4.1.jar:4.4.1]
    	at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24) [gradle-messaging-4.4.1.jar:4.4.1]
    	at org.gradle.internal.remote.internal.hub.MessageHubBackedObjectConnection$DispatchWrapper.dispatch(MessageHubBackedObjectConnection.java:146) [gradle-messaging-4.4.1.jar:4.4.1]
    	at org.gradle.internal.remote.internal.hub.MessageHubBackedObjectConnection$DispatchWrapper.dispatch(MessageHubBackedObjectConnection.java:128) [gradle-messaging-4.4.1.jar:4.4.1]
    	at org.gradle.internal.remote.internal.hub.MessageHub$Handler.run(MessageHub.java:404) [gradle-messaging-4.4.1.jar:4.4.1]
    	at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:63) [gradle-base-services-4.4.1.jar:4.4.1]
    	at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:46) [gradle-base-services-4.4.1.jar:4.4.1]
    	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:1.8.0_131]
    	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [?:1.8.0_131]
    	at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:55) [gradle-base-services-4.4.1.jar:4.4.1]
    	at java.lang.Thread.run(Thread.java:748) [?:1.8.0_131]