ApplicationContextTest
|
100%
successful |
Tests
| Test | Duration | Result |
|---|---|---|
| all subcommands are wired | 0.019s | passed |
| application context loads | 0.058s | passed |
Standard output
09:35:34.318 [Test worker @coroutine#2] INFO org.springframework.test.context.support.AnnotationConfigContextLoaderUtils -- Could not detect default configuration classes for test class [de.hoennig.werkator.ApplicationContextTest]: ApplicationContextTest does not declare any static, non-private, non-final, nested classes annotated with @Configuration. 09:35:34.544 [Test worker @coroutine#2] INFO org.springframework.boot.test.context.SpringBootTestContextBootstrapper -- Found @SpringBootConfiguration de.hoennig.werkator.WerkatorApplication for test class de.hoennig.werkator.ApplicationContextTest 09:35:34.692 [Test worker @coroutine#2] INFO org.springframework.test.context.support.AnnotationConfigContextLoaderUtils -- Could not detect default configuration classes for test class [de.hoennig.werkator.ApplicationContextTest]: ApplicationContextTest does not declare any static, non-private, non-final, nested classes annotated with @Configuration. 09:35:34.695 [Test worker @coroutine#2] INFO org.springframework.test.context.support.AnnotationConfigContextLoaderUtils -- Could not detect default configuration classes for test class [io.kotest.core.spec.style.FunSpec]: FunSpec does not declare any static, non-private, non-final, nested classes annotated with @Configuration. 09:35:34.696 [Test worker @coroutine#2] INFO org.springframework.test.context.support.AnnotationConfigContextLoaderUtils -- Could not detect default configuration classes for test class [io.kotest.core.spec.DslDrivenSpec]: DslDrivenSpec does not declare any static, non-private, non-final, nested classes annotated with @Configuration. 09:35:34.697 [Test worker @coroutine#2] INFO org.springframework.test.context.support.AnnotationConfigContextLoaderUtils -- Could not detect default configuration classes for test class [io.kotest.core.spec.Spec]: Spec does not declare any static, non-private, non-final, nested classes annotated with @Configuration. 09:35:34.697 [Test worker @coroutine#2] INFO org.springframework.test.context.support.AnnotationConfigContextLoaderUtils -- Could not detect default configuration classes for test class [io.kotest.core.TestConfiguration]: TestConfiguration does not declare any static, non-private, non-final, nested classes annotated with @Configuration. 09:35:34.699 [Test worker @coroutine#2] INFO org.springframework.test.context.support.AnnotationConfigContextLoaderUtils -- Could not detect default configuration classes for test class [io.kotest.core.spec.Extendable]: Extendable does not declare any static, non-private, non-final, nested classes annotated with @Configuration. 09:35:34.710 [Test worker @coroutine#2] INFO org.springframework.boot.test.context.SpringBootTestContextBootstrapper -- Found @SpringBootConfiguration de.hoennig.werkator.WerkatorApplication for test class de.hoennig.werkator.ApplicationContextTest Creating nstance of class de.hoennig.werkator.ApplicationContextTest
Standard error
picocli.CommandLine$InitializationException: Cannot instantiate de.hoennig.werkator.BuildPropertiesVersionProvider: the class has no constructor at picocli.CommandLine$DefaultFactory.create(CommandLine.java:5689) at picocli.CommandLine$DefaultFactory.createVersionProvider(CommandLine.java:5675) at picocli.CommandLine$Model$CommandSpec.updateVersionProvider(CommandLine.java:7494) at picocli.CommandLine$Model$CommandSpec.updateCommandAttributes(CommandLine.java:7459) at picocli.CommandLine$Model$CommandReflection.extractCommandSpec(CommandLine.java:11845) at picocli.CommandLine$Model$CommandSpec.forAnnotatedObject(CommandLine.java:6392) at picocli.CommandLine.<init>(CommandLine.java:230) at picocli.CommandLine.<init>(CommandLine.java:224) at picocli.CommandLine.<init>(CommandLine.java:199) at de.hoennig.werkator.WerkatorCommand.run(WerkatorCommand.kt:31) at picocli.CommandLine.executeUserObject(CommandLine.java:2030) at picocli.CommandLine.access$1500(CommandLine.java:148) at picocli.CommandLine$RunLast.executeUserObjectOfLastSubcommandWithSameParent(CommandLine.java:2465) at picocli.CommandLine$RunLast.handle(CommandLine.java:2457) at picocli.CommandLine$RunLast.handle(CommandLine.java:2419) at picocli.CommandLine$AbstractParseResultHandler.execute(CommandLine.java:2277) at picocli.CommandLine$RunLast.execute(CommandLine.java:2421) at picocli.CommandLine.execute(CommandLine.java:2174) at de.hoennig.werkator.CliRunner.run(WerkatorApplication.kt:43) at org.springframework.boot.SpringApplication.lambda$callRunner$1(SpringApplication.java:792) at org.springframework.util.function.ThrowingConsumer$1.acceptWithException(ThrowingConsumer.java:82) at org.springframework.util.function.ThrowingConsumer.accept(ThrowingConsumer.java:60) at org.springframework.util.function.ThrowingConsumer$1.accept(ThrowingConsumer.java:86) at org.springframework.boot.SpringApplication.callRunner(SpringApplication.java:800) at org.springframework.boot.SpringApplication.callRunner(SpringApplication.java:791) at org.springframework.boot.SpringApplication.lambda$callRunners$0(SpringApplication.java:776) at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:184) at java.base/java.util.stream.SortedOps$SizedRefSortingSink.end(SortedOps.java:357) at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:510) at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:499) at java.base/java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:151) at java.base/java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:174) at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234) at java.base/java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:596) at org.springframework.boot.SpringApplication.callRunners(SpringApplication.java:776) at org.springframework.boot.SpringApplication.run(SpringApplication.java:328) at org.springframework.boot.test.context.SpringBootContextLoader.lambda$loadContext$2(SpringBootContextLoader.java:155) at org.springframework.util.function.ThrowingSupplier.get(ThrowingSupplier.java:58) at org.springframework.util.function.ThrowingSupplier.get(ThrowingSupplier.java:46) at org.springframework.boot.SpringApplication.withHook(SpringApplication.java:1465) at org.springframework.boot.test.context.SpringBootContextLoader$ContextLoaderHook.run(SpringBootContextLoader.java:600) at org.springframework.boot.test.context.SpringBootContextLoader.loadContext(SpringBootContextLoader.java:155) at org.springframework.boot.test.context.SpringBootContextLoader.loadContext(SpringBootContextLoader.java:114) at org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.loadContextInternal(DefaultCacheAwareContextLoaderDelegate.java:247) at org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.lambda$loadContext$0(DefaultCacheAwareContextLoaderDelegate.java:167) at org.springframework.test.context.cache.DefaultContextCache.put(DefaultContextCache.java:214) at org.springframework.test.context.cache.DefaultCacheAwareContextLoaderDelegate.loadContext(DefaultCacheAwareContextLoaderDelegate.java:160) at org.springframework.test.context.support.DefaultTestContext.getApplicationContext(DefaultTestContext.java:128) at io.kotest.extensions.spring.SpringExtension.instantiate(SpringExtension.kt:58) at io.kotest.engine.spec.SpecInstantiator.instantiate-gIAlu-s(SpecInstantiator.kt:46) at io.kotest.engine.spec.SpecInstantiator.objectOrInstantiateClass-gIAlu-s(SpecInstantiator.kt:37) at io.kotest.engine.spec.SpecInstantiator.createAndInitializeSpec-gIAlu-s(SpecInstantiator.kt:32) at io.kotest.engine.spec.InstantiateSpecKt.instantiate(instantiateSpec.kt:14) at io.kotest.engine.spec.SpecRefInflator.inflate-gIAlu-s$kotest_framework_engine(SpecRef.kt:29) at io.kotest.engine.spec.execution.SpecRefExecutor.inflateAndExecute(SpecRefExecutor.kt:160) at io.kotest.engine.spec.execution.SpecRefExecutor.invokeUserListeners(SpecRefExecutor.kt:146) at io.kotest.engine.spec.execution.SpecRefExecutor.invokeEngineListeners(SpecRefExecutor.kt:126) at io.kotest.engine.spec.execution.SpecRefExecutor.access$invokeEngineListeners(SpecRefExecutor.kt:43) at io.kotest.engine.spec.execution.SpecRefExecutor$invokeSpecRefExtensions$inner$1.invokeSuspend(SpecRefExecutor.kt:111) at io.kotest.engine.spec.execution.SpecRefExecutor$invokeSpecRefExtensions$inner$1.invoke(SpecRefExecutor.kt) at io.kotest.engine.spec.execution.SpecRefExecutor$invokeSpecRefExtensions$inner$1.invoke(SpecRefExecutor.kt) at io.kotest.engine.spec.execution.SpecRefExecutor.invokeSpecRefExtensions(SpecRefExecutor.kt:115) at io.kotest.engine.spec.execution.SpecRefExecutor.applyExtensions(SpecRefExecutor.kt:92) at io.kotest.engine.spec.execution.SpecRefExecutor.execute(SpecRefExecutor.kt:71) at io.kotest.engine.TestSuiteScheduler.executeIfNotFailedFast(TestSuiteScheduler.kt:106) at io.kotest.engine.TestSuiteScheduler.access$executeIfNotFailedFast(TestSuiteScheduler.kt:30) at io.kotest.engine.TestSuiteScheduler$schedule$14$1$2.invokeSuspend(TestSuiteScheduler.kt:87) at kotlin.coroutines.jvm.internal.BaseContinuationImpl.resumeWith(ContinuationImpl.kt:33) at kotlinx.coroutines.DispatchedTask.run(DispatchedTask.kt:100) at kotlinx.coroutines.EventLoopImplBase.processNextEvent(EventLoop.common.kt:263) at kotlinx.coroutines.BlockingCoroutine.joinBlocking(Builders.kt:94) at kotlinx.coroutines.BuildersKt__BuildersKt.runBlocking(Builders.kt:70) at kotlinx.coroutines.BuildersKt.runBlocking(Unknown Source) at kotlinx.coroutines.BuildersKt__BuildersKt.runBlocking$default(Builders.kt:48) at kotlinx.coroutines.BuildersKt.runBlocking$default(Unknown Source) at io.kotest.runner.junit.platform.KotestJunitPlatformTestEngine.execute(KotestJunitPlatformTestEngine.kt:78) at io.kotest.runner.junit.platform.KotestJunitPlatformTestEngine.execute(KotestJunitPlatformTestEngine.kt:48) at org.junit.platform.launcher.core.EngineExecutionOrchestrator.executeEngine(EngineExecutionOrchestrator.java:246) at org.junit.platform.launcher.core.EngineExecutionOrchestrator.failOrExecuteEngine(EngineExecutionOrchestrator.java:218) at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:179) at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:108) at org.junit.platform.launcher.core.EngineExecutionOrchestrator.lambda$execute$0(EngineExecutionOrchestrator.java:66) at org.junit.platform.launcher.core.EngineExecutionOrchestrator.withInterceptedStreams(EngineExecutionOrchestrator.java:157) at org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:65) at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:125) at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:114) at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:93) at org.junit.platform.launcher.core.DelegatingLauncher.execute(DelegatingLauncher.java:48) at org.junit.platform.launcher.core.InterceptingLauncher.lambda$execute$0(InterceptingLauncher.java:41) at org.junit.platform.launcher.core.ClasspathAlignmentCheckingLauncherInterceptor.intercept(ClasspathAlignmentCheckingLauncherInterceptor.java:25) at org.junit.platform.launcher.core.InterceptingLauncher.execute(InterceptingLauncher.java:40) at org.junit.platform.launcher.core.DelegatingLauncher.execute(DelegatingLauncher.java:48) at org.gradle.api.internal.tasks.testing.junitplatform.JUnitPlatformTestClassProcessor$CollectAllTestClassesExecutor.processAllTestClasses(JUnitPlatformTestClassProcessor.java:124) at org.gradle.api.internal.tasks.testing.junitplatform.JUnitPlatformTestClassProcessor$CollectAllTestClassesExecutor.access$000(JUnitPlatformTestClassProcessor.java:99) at org.gradle.api.internal.tasks.testing.junitplatform.JUnitPlatformTestClassProcessor.stop(JUnitPlatformTestClassProcessor.java:94) at org.gradle.api.internal.tasks.testing.SuiteTestClassProcessor.stop(SuiteTestClassProcessor.java:63) at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103) at java.base/java.lang.reflect.Method.invoke(Method.java:580) at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:36) at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24) at org.gradle.internal.dispatch.ContextClassLoaderDispatch.dispatch(ContextClassLoaderDispatch.java:33) at org.gradle.internal.dispatch.ProxyDispatchAdapter$DispatchingInvocationHandler.invoke(ProxyDispatchAdapter.java:92) at jdk.proxy1/jdk.proxy1.$Proxy4.stop(Unknown Source) at org.gradle.api.internal.tasks.testing.worker.TestWorker$3.run(TestWorker.java:200) at org.gradle.api.internal.tasks.testing.worker.TestWorker.executeAndMaintainThreadName(TestWorker.java:132) at org.gradle.api.internal.tasks.testing.worker.TestWorker.execute(TestWorker.java:103) at org.gradle.api.internal.tasks.testing.worker.TestWorker.execute(TestWorker.java:63) at org.gradle.process.internal.worker.child.ActionExecutionWorker.execute(ActionExecutionWorker.java:56) at org.gradle.process.internal.worker.child.SystemApplicationClassLoaderWorker.call(SystemApplicationClassLoaderWorker.java:122) at org.gradle.process.internal.worker.child.SystemApplicationClassLoaderWorker.call(SystemApplicationClassLoaderWorker.java:72) at worker.org.gradle.process.internal.worker.GradleWorkerMain.run(GradleWorkerMain.java:69) at worker.org.gradle.process.internal.worker.GradleWorkerMain.main(GradleWorkerMain.java:74) Caused by: java.lang.NoSuchMethodException: de.hoennig.werkator.BuildPropertiesVersionProvider.<init>() at java.base/java.lang.Class.getConstructor0(Class.java:3763) at java.base/java.lang.Class.getDeclaredConstructor(Class.java:2932) at picocli.CommandLine$DefaultFactory.create(CommandLine.java:5660) at picocli.CommandLine$DefaultFactory.create(CommandLine.java:5687) ... 111 more WARNING: A Java agent has been loaded dynamically (/root/.gradle/caches/modules-2/files-2.1/net.bytebuddy/byte-buddy-agent/1.17.8/f09415827a71be7ed621c7bd02550678f28bc81c/byte-buddy-agent-1.17.8.jar) WARNING: If a serviceability tool is in use, please run with -XX:+EnableDynamicAgentLoading to hide this warning WARNING: If a serviceability tool is not in use, please run with -Djdk.instrument.traceUsage for more information WARNING: Dynamic loading of agents will be disallowed by default in a future release