Description of the bug
run test in jdk 11 and junit5 in a springboot project
import io.specto.hoverfly.junit.core.Hoverfly;
import io.specto.hoverfly.junit5.HoverflyExtension;
import org.junit.jupiter.api.extension.ExtendWith;
@ExtendWith(HoverflyExtension.class)
public class Test extends DemoApplicationTests {
@org.junit.jupiter.api.Test
public void test(Hoverfly hoverfly){
}
}
Observed result
18:31:05.530 [Test worker] INFO io.specto.hoverfly.junit.core.TempFileManager - Selecting the following binary based on the current operating system: hoverfly_OSX_amd64
18:31:05.532 [Test worker] INFO io.specto.hoverfly.junit.core.TempFileManager - Storing binary in temporary directory /var/folders/68/3_sx_12x691cqbfh35w148hr0000gq/T/hoverfly.4183811405764542695/hoverfly_OSX_amd64
18:31:05.659 [Test worker] INFO io.specto.hoverfly.junit.core.Hoverfly - Executing binary at /var/folders/68/3_sx_12x691cqbfh35w148hr0000gq/T/hoverfly.4183811405764542695/hoverfly_OSX_amd64
18:31:05.665 [Test worker] DEBUG org.zeroturnaround.exec.ProcessExecutor - Executing [/var/folders/68/3_sx_12x691cqbfh35w148hr0000gq/T/hoverfly.4183811405764542695/hoverfly_OSX_amd64, -pp, 62476, -ap, 62477, -logs, json] in /var/folders/68/3_sx_12x691cqbfh35w148hr0000gq/T/hoverfly.4183811405764542695.
18:31:05.798 [Test worker] DEBUG org.zeroturnaround.exec.ProcessExecutor - Started Process[pid=31563, exitValue="not exited"]
18:31:05.816 [Test worker] DEBUG io.specto.hoverfly.junit.api.HoverflyClient - Hoverfly healthcheck failed: Failed to connect to localhost/0:0:0:0:0:0:0:1:62477
18:31:05.919 [Test worker] DEBUG io.specto.hoverfly.junit.api.HoverflyClient - Hoverfly healthcheck failed: Failed to connect to localhost/0:0:0:0:0:0:0:1:62477
18:31:05.952 [Thread-4] INFO hoverfly - Default proxy port has been overwritten port=62476
18:31:05.953 [Thread-4] INFO hoverfly - Default admin port has been overwritten port=62477
18:31:05.953 [Thread-4] INFO hoverfly - Using memory backend
18:31:05.953 [Thread-4] INFO hoverfly - Proxy prepared... Destination=. Mode=simulate ProxyPort=62476
18:31:05.953 [Thread-4] INFO hoverfly - current proxy configuration destination=. mode=simulate port=62476
18:31:05.953 [Thread-4] INFO hoverfly - serving proxy
18:31:05.954 [Thread-4] INFO hoverfly - Admin interface is starting... AdminPort=62477
18:31:06.022 [Test worker] DEBUG io.specto.hoverfly.junit.api.HoverflyClient - Hoverfly healthcheck failed: Failed to connect to localhost/0:0:0:0:0:0:0:1:62477
18:31:06.125 [Test worker] DEBUG io.specto.hoverfly.junit.api.HoverflyClient - Hoverfly healthcheck failed: Failed to connect to localhost/0:0:0:0:0:0:0:1:62477
18:31:06.230 [Test worker] DEBUG io.specto.hoverfly.junit.api.HoverflyClient - Hoverfly healthcheck failed: Failed to connect to localhost/0:0:0:0:0:0:0:1:62477
18:31:06.332 [Test worker] DEBUG io.specto.hoverfly.junit.api.HoverflyClient - Hoverfly healthcheck failed: Failed to connect to localhost/0:0:0:0:0:0:0:1:62477
18:31:06.434 [Test worker] DEBUG io.specto.hoverfly.junit.api.HoverflyClient - Hoverfly healthcheck failed: Failed to connect to localhost/0:0:0:0:0:0:0:1:62477
18:31:06.538 [Test worker] DEBUG io.specto.hoverfly.junit.api.HoverflyClient - Hoverfly healthcheck failed: Failed to connect to localhost/0:0:0:0:0:0:0:1:62477
18:31:06.644 [Test worker] DEBUG io.specto.hoverfly.junit.api.HoverflyClient - Hoverfly healthcheck failed: Failed to connect to localhost/0:0:0:0:0:0:0:1:62477
18:31:06.747 [Test worker] DEBUG io.specto.hoverfly.junit.api.HoverflyClient - Hoverfly healthcheck failed: Failed to connect to localhost/0:0:0:0:0:0:0:1:62477
18:31:06.851 [Test worker] DEBUG io.specto.hoverfly.junit.api.HoverflyClient - Hoverfly healthcheck failed: Failed to connect to localhost/0:0:0:0:0:0:0:1:62477
18:31:06.953 [Test worker] DEBUG io.specto.hoverfly.junit.api.HoverflyClient - Hoverfly healthcheck failed: Failed to connect to localhost/0:0:0:0:0:0:0:1:62477
18:31:07.060 [Test worker] DEBUG io.specto.hoverfly.junit.api.HoverflyClient - Hoverfly healthcheck failed: Failed to connect to localhost/0:0:0:0:0:0:0:1:62477
18:31:07.166 [Test worker] DEBUG io.specto.hoverfly.junit.api.HoverflyClient - Hoverfly healthcheck failed: Failed to connect to localhost/0:0:0:0:0:0:0:1:62477
18:31:07.268 [Test worker] DEBUG io.specto.hoverfly.junit.api.HoverflyClient - Hoverfly healthcheck failed: Failed to connect to localhost/0:0:0:0:0:0:0:1:62477
18:31:07.372 [Test worker] DEBUG io.specto.hoverfly.junit.api.HoverflyClient - Hoverfly healthcheck failed: Failed to connect to localhost/0:0:0:0:0:0:0:1:62477
18:31:07.477 [Test worker] DEBUG io.specto.hoverfly.junit.api.HoverflyClient - Hoverfly healthcheck failed: Failed to connect to localhost/0:0:0:0:0:0:0:1:62477
18:31:07.579 [Test worker] DEBUG io.specto.hoverfly.junit.api.HoverflyClient - Hoverfly healthcheck failed: Failed to connect to localhost/0:0:0:0:0:0:0:1:62477
18:31:07.681 [Test worker] DEBUG io.specto.hoverfly.junit.api.HoverflyClient - Hoverfly healthcheck failed: Failed to connect to localhost/0:0:0:0:0:0:0:1:62477
18:31:07.782 [Test worker] DEBUG io.specto.hoverfly.junit.api.HoverflyClient - Hoverfly healthcheck failed: Failed to connect to localhost/0:0:0:0:0:0:0:1:62477
18:31:07.888 [Test worker] DEBUG io.specto.hoverfly.junit.api.HoverflyClient - Hoverfly healthcheck failed: Failed to connect to localhost/0:0:0:0:0:0:0:1:62477
18:31:07.992 [Test worker] DEBUG io.specto.hoverfly.junit.api.HoverflyClient - Hoverfly healthcheck failed: Failed to connect to localhost/0:0:0:0:0:0:0:1:62477
18:31:08.096 [Test worker] DEBUG io.specto.hoverfly.junit.api.HoverflyClient - Hoverfly healthcheck failed: Failed to connect to localhost/0:0:0:0:0:0:0:1:62477
18:31:08.197 [Test worker] DEBUG io.specto.hoverfly.junit.api.HoverflyClient - Hoverfly healthcheck failed: Failed to connect to localhost/0:0:0:0:0:0:0:1:62477
18:31:08.300 [Test worker] DEBUG io.specto.hoverfly.junit.api.HoverflyClient - Hoverfly healthcheck failed: Failed to connect to localhost/0:0:0:0:0:0:0:1:62477
18:31:08.405 [Test worker] DEBUG io.specto.hoverfly.junit.api.HoverflyClient - Hoverfly healthcheck failed: Failed to connect to localhost/0:0:0:0:0:0:0:1:62477
18:31:08.510 [Test worker] DEBUG io.specto.hoverfly.junit.api.HoverflyClient - Hoverfly healthcheck failed: Failed to connect to localhost/0:0:0:0:0:0:0:1:62477
18:31:08.614 [Test worker] DEBUG io.specto.hoverfly.junit.api.HoverflyClient - Hoverfly healthcheck failed: Failed to connect to localhost/0:0:0:0:0:0:0:1:62477
18:31:08.720 [Test worker] DEBUG io.specto.hoverfly.junit.api.HoverflyClient - Hoverfly healthcheck failed: Failed to connect to localhost/0:0:0:0:0:0:0:1:62477
18:31:08.826 [Test worker] DEBUG io.specto.hoverfly.junit.api.HoverflyClient - Hoverfly healthcheck failed: Failed to connect to localhost/0:0:0:0:0:0:0:1:62477
18:31:08.927 [Test worker] DEBUG io.specto.hoverfly.junit.api.HoverflyClient - Hoverfly healthcheck failed: Failed to connect to localhost/0:0:0:0:0:0:0:1:62477
18:31:09.032 [Test worker] DEBUG io.specto.hoverfly.junit.api.HoverflyClient - Hoverfly healthcheck failed: Failed to connect to localhost/0:0:0:0:0:0:0:1:62477
18:31:09.134 [Test worker] DEBUG io.specto.hoverfly.junit.api.HoverflyClient - Hoverfly healthcheck failed: Failed to connect to localhost/0:0:0:0:0:0:0:1:62477
18:31:09.239 [Test worker] DEBUG io.specto.hoverfly.junit.api.HoverflyClient - Hoverfly healthcheck failed: Failed to connect to localhost/0:0:0:0:0:0:0:1:62477
18:31:09.341 [Test worker] DEBUG io.specto.hoverfly.junit.api.HoverflyClient - Hoverfly healthcheck failed: Failed to connect to localhost/0:0:0:0:0:0:0:1:62477
18:31:09.446 [Test worker] DEBUG io.specto.hoverfly.junit.api.HoverflyClient - Hoverfly healthcheck failed: Failed to connect to localhost/0:0:0:0:0:0:0:1:62477
18:31:09.552 [Test worker] DEBUG io.specto.hoverfly.junit.api.HoverflyClient - Hoverfly healthcheck failed: Failed to connect to localhost/0:0:0:0:0:0:0:1:62477
18:31:09.653 [Test worker] DEBUG io.specto.hoverfly.junit.api.HoverflyClient - Hoverfly healthcheck failed: Failed to connect to localhost/0:0:0:0:0:0:0:1:62477
18:31:09.755 [Test worker] DEBUG io.specto.hoverfly.junit.api.HoverflyClient - Hoverfly healthcheck failed: Failed to connect to localhost/0:0:0:0:0:0:0:1:62477
18:31:09.860 [Test worker] DEBUG io.specto.hoverfly.junit.api.HoverflyClient - Hoverfly healthcheck failed: Failed to connect to localhost/0:0:0:0:0:0:0:1:62477
18:31:09.964 [Test worker] DEBUG io.specto.hoverfly.junit.api.HoverflyClient - Hoverfly healthcheck failed: Failed to connect to localhost/0:0:0:0:0:0:0:1:62477
18:31:10.067 [Test worker] DEBUG io.specto.hoverfly.junit.api.HoverflyClient - Hoverfly healthcheck failed: Failed to connect to localhost/0:0:0:0:0:0:0:1:62477
18:31:10.173 [Test worker] DEBUG io.specto.hoverfly.junit.api.HoverflyClient - Hoverfly healthcheck failed: Failed to connect to localhost/0:0:0:0:0:0:0:1:62477
18:31:10.278 [Test worker] DEBUG io.specto.hoverfly.junit.api.HoverflyClient - Hoverfly healthcheck failed: Failed to connect to localhost/0:0:0:0:0:0:0:1:62477
18:31:10.381 [Test worker] DEBUG io.specto.hoverfly.junit.api.HoverflyClient - Hoverfly healthcheck failed: Failed to connect to localhost/0:0:0:0:0:0:0:1:62477
18:31:10.485 [Test worker] DEBUG io.specto.hoverfly.junit.api.HoverflyClient - Hoverfly healthcheck failed: Failed to connect to localhost/0:0:0:0:0:0:0:1:62477
18:31:10.589 [Test worker] DEBUG io.specto.hoverfly.junit.api.HoverflyClient - Hoverfly healthcheck failed: Failed to connect to localhost/0:0:0:0:0:0:0:1:62477
18:31:10.695 [Test worker] DEBUG io.specto.hoverfly.junit.api.HoverflyClient - Hoverfly healthcheck failed: Failed to connect to localhost/0:0:0:0:0:0:0:1:62477
18:31:10.800 [Test worker] DEBUG io.specto.hoverfly.junit.api.HoverflyClient - Hoverfly healthcheck failed: Failed to connect to localhost/0:0:0:0:0:0:0:1:62477
18:31:10.902 [Test worker] DEBUG io.specto.hoverfly.junit.api.HoverflyClient - Hoverfly healthcheck failed: Failed to connect to localhost/0:0:0:0:0:0:0:1:62477
18:31:11.004 [Test worker] DEBUG io.specto.hoverfly.junit.api.HoverflyClient - Hoverfly healthcheck failed: Failed to connect to localhost/0:0:0:0:0:0:0:1:62477
18:31:11.110 [Test worker] DEBUG io.specto.hoverfly.junit.api.HoverflyClient - Hoverfly healthcheck failed: Failed to connect to localhost/0:0:0:0:0:0:0:1:62477
18:31:11.214 [Test worker] DEBUG io.specto.hoverfly.junit.api.HoverflyClient - Hoverfly healthcheck failed: Failed to connect to localhost/0:0:0:0:0:0:0:1:62477
18:31:11.315 [Test worker] DEBUG io.specto.hoverfly.junit.api.HoverflyClient - Hoverfly healthcheck failed: Failed to connect to localhost/0:0:0:0:0:0:0:1:62477
18:31:11.419 [Test worker] DEBUG io.specto.hoverfly.junit.api.HoverflyClient - Hoverfly healthcheck failed: Failed to connect to localhost/0:0:0:0:0:0:0:1:62477
18:31:11.526 [Test worker] DEBUG io.specto.hoverfly.junit.api.HoverflyClient - Hoverfly healthcheck failed: Failed to connect to localhost/0:0:0:0:0:0:0:1:62477
18:31:11.628 [Test worker] DEBUG io.specto.hoverfly.junit.api.HoverflyClient - Hoverfly healthcheck failed: Failed to connect to localhost/0:0:0:0:0:0:0:1:62477
18:31:11.729 [Test worker] DEBUG io.specto.hoverfly.junit.api.HoverflyClient - Hoverfly healthcheck failed: Failed to connect to localhost/0:0:0:0:0:0:0:1:62477
18:31:11.835 [Test worker] DEBUG io.specto.hoverfly.junit.api.HoverflyClient - Hoverfly healthcheck failed: Failed to connect to localhost/0:0:0:0:0:0:0:1:62477
18:31:11.937 [Test worker] DEBUG io.specto.hoverfly.junit.api.HoverflyClient - Hoverfly healthcheck failed: Failed to connect to localhost/0:0:0:0:0:0:0:1:62477
18:31:12.040 [Test worker] DEBUG io.specto.hoverfly.junit.api.HoverflyClient - Hoverfly healthcheck failed: Failed to connect to localhost/0:0:0:0:0:0:0:1:62477
18:31:12.145 [Test worker] DEBUG io.specto.hoverfly.junit.api.HoverflyClient - Hoverfly healthcheck failed: Failed to connect to localhost/0:0:0:0:0:0:0:1:62477
18:31:12.250 [Test worker] DEBUG io.specto.hoverfly.junit.api.HoverflyClient - Hoverfly healthcheck failed: Failed to connect to localhost/0:0:0:0:0:0:0:1:62477
18:31:12.356 [Test worker] DEBUG io.specto.hoverfly.junit.api.HoverflyClient - Hoverfly healthcheck failed: Failed to connect to localhost/0:0:0:0:0:0:0:1:62477
18:31:12.459 [Test worker] DEBUG io.specto.hoverfly.junit.api.HoverflyClient - Hoverfly healthcheck failed: Failed to connect to localhost/0:0:0:0:0:0:0:1:62477
18:31:12.563 [Test worker] DEBUG io.specto.hoverfly.junit.api.HoverflyClient - Hoverfly healthcheck failed: Failed to connect to localhost/0:0:0:0:0:0:0:1:62477
18:31:12.667 [Test worker] DEBUG io.specto.hoverfly.junit.api.HoverflyClient - Hoverfly healthcheck failed: Failed to connect to localhost/0:0:0:0:0:0:0:1:62477
18:31:12.772 [Test worker] DEBUG io.specto.hoverfly.junit.api.HoverflyClient - Hoverfly healthcheck failed: Failed to connect to localhost/0:0:0:0:0:0:0:1:62477
18:31:12.879 [Test worker] DEBUG io.specto.hoverfly.junit.api.HoverflyClient - Hoverfly healthcheck failed: Failed to connect to localhost/0:0:0:0:0:0:0:1:62477
18:31:12.981 [Test worker] DEBUG io.specto.hoverfly.junit.api.HoverflyClient - Hoverfly healthcheck failed: Failed to connect to localhost/0:0:0:0:0:0:0:1:62477
18:31:13.085 [Test worker] DEBUG io.specto.hoverfly.junit.api.HoverflyClient - Hoverfly healthcheck failed: Failed to connect to localhost/0:0:0:0:0:0:0:1:62477
18:31:13.191 [Test worker] DEBUG io.specto.hoverfly.junit.api.HoverflyClient - Hoverfly healthcheck failed: Failed to connect to localhost/0:0:0:0:0:0:0:1:62477
18:31:13.296 [Test worker] DEBUG io.specto.hoverfly.junit.api.HoverflyClient - Hoverfly healthcheck failed: Failed to connect to localhost/0:0:0:0:0:0:0:1:62477
18:31:13.400 [Test worker] DEBUG io.specto.hoverfly.junit.api.HoverflyClient - Hoverfly healthcheck failed: Failed to connect to localhost/0:0:0:0:0:0:0:1:62477
18:31:13.501 [Test worker] DEBUG io.specto.hoverfly.junit.api.HoverflyClient - Hoverfly healthcheck failed: Failed to connect to localhost/0:0:0:0:0:0:0:1:62477
18:31:13.608 [Test worker] DEBUG io.specto.hoverfly.junit.api.HoverflyClient - Hoverfly healthcheck failed: Failed to connect to localhost/0:0:0:0:0:0:0:1:62477
18:31:13.713 [Test worker] DEBUG io.specto.hoverfly.junit.api.HoverflyClient - Hoverfly healthcheck failed: Failed to connect to localhost/0:0:0:0:0:0:0:1:62477
18:31:13.818 [Test worker] DEBUG io.specto.hoverfly.junit.api.HoverflyClient - Hoverfly healthcheck failed: Failed to connect to localhost/0:0:0:0:0:0:0:1:62477
18:31:13.921 [Test worker] DEBUG io.specto.hoverfly.junit.api.HoverflyClient - Hoverfly healthcheck failed: Failed to connect to localhost/0:0:0:0:0:0:0:1:62477
18:31:14.026 [Test worker] DEBUG io.specto.hoverfly.junit.api.HoverflyClient - Hoverfly healthcheck failed: Failed to connect to localhost/0:0:0:0:0:0:0:1:62477
18:31:14.129 [Test worker] DEBUG io.specto.hoverfly.junit.api.HoverflyClient - Hoverfly healthcheck failed: Failed to connect to localhost/0:0:0:0:0:0:0:1:62477
18:31:14.232 [Test worker] DEBUG io.specto.hoverfly.junit.api.HoverflyClient - Hoverfly healthcheck failed: Failed to connect to localhost/0:0:0:0:0:0:0:1:62477
18:31:14.333 [Test worker] DEBUG io.specto.hoverfly.junit.api.HoverflyClient - Hoverfly healthcheck failed: Failed to connect to localhost/0:0:0:0:0:0:0:1:62477
18:31:14.434 [Test worker] DEBUG io.specto.hoverfly.junit.api.HoverflyClient - Hoverfly healthcheck failed: Failed to connect to localhost/0:0:0:0:0:0:0:1:62477
18:31:14.541 [Test worker] DEBUG io.specto.hoverfly.junit.api.HoverflyClient - Hoverfly healthcheck failed: Failed to connect to localhost/0:0:0:0:0:0:0:1:62477
18:31:14.646 [Test worker] DEBUG io.specto.hoverfly.junit.api.HoverflyClient - Hoverfly healthcheck failed: Failed to connect to localhost/0:0:0:0:0:0:0:1:62477
18:31:14.751 [Test worker] DEBUG io.specto.hoverfly.junit.api.HoverflyClient - Hoverfly healthcheck failed: Failed to connect to localhost/0:0:0:0:0:0:0:1:62477
18:31:14.858 [Test worker] DEBUG io.specto.hoverfly.junit.api.HoverflyClient - Hoverfly healthcheck failed: Failed to connect to localhost/0:0:0:0:0:0:0:1:62477
18:31:14.963 [Test worker] DEBUG io.specto.hoverfly.junit.api.HoverflyClient - Hoverfly healthcheck failed: Failed to connect to localhost/0:0:0:0:0:0:0:1:62477
18:31:15.065 [Test worker] DEBUG io.specto.hoverfly.junit.api.HoverflyClient - Hoverfly healthcheck failed: Failed to connect to localhost/0:0:0:0:0:0:0:1:62477
18:31:15.167 [Test worker] DEBUG io.specto.hoverfly.junit.api.HoverflyClient - Hoverfly healthcheck failed: Failed to connect to localhost/0:0:0:0:0:0:0:1:62477
18:31:15.271 [Test worker] DEBUG io.specto.hoverfly.junit.api.HoverflyClient - Hoverfly healthcheck failed: Failed to connect to localhost/0:0:0:0:0:0:0:1:62477
18:31:15.376 [Test worker] DEBUG io.specto.hoverfly.junit.api.HoverflyClient - Hoverfly healthcheck failed: Failed to connect to localhost/0:0:0:0:0:0:0:1:62477
18:31:15.477 [Test worker] DEBUG io.specto.hoverfly.junit.api.HoverflyClient - Hoverfly healthcheck failed: Failed to connect to localhost/0:0:0:0:0:0:0:1:62477
18:31:15.579 [Test worker] DEBUG io.specto.hoverfly.junit.api.HoverflyClient - Hoverfly healthcheck failed: Failed to connect to localhost/0:0:0:0:0:0:0:1:62477
18:31:15.685 [Test worker] DEBUG io.specto.hoverfly.junit.api.HoverflyClient - Hoverfly healthcheck failed: Failed to connect to localhost/0:0:0:0:0:0:0:1:62477
18:31:15.787 [Test worker] DEBUG io.specto.hoverfly.junit.api.HoverflyClient - Hoverfly healthcheck failed: Failed to connect to localhost/0:0:0:0:0:0:0:1:62477
18:31:15.891 [Test worker] INFO io.specto.hoverfly.junit.core.Hoverfly - Destroying hoverfly process
18:31:15.892 [WaitForProcess-Process[pid=31563, exitValue="not exited"]] DEBUG org.zeroturnaround.exec.WaitForProcess - Process[pid=31563, exitValue=143] stopped with exit code 143
18
18:31:15.891 [Test worker] INFO io.specto.hoverfly.junit.core.Hoverfly - Destroying hoverfly process
18:31:15.892 [WaitForProcess-Process[pid=31563, exitValue="not exited"]] DEBUG org.zeroturnaround.exec.WaitForProcess - Process[pid=31563, exitValue=143] stopped with exit code 143
18:31:15.896 [Test worker] DEBUG org.springframework.test.context.support.AbstractDirtiesContextTestExecutionListener - After test class: context [DefaultTestContext@209ad819 testClass = Test, testInstance = [null], testMethod = [null], testException = [null], mergedContextConfiguration = [MergedContextConfiguration@625e6f76 testClass = Test, locations = '{}', classes = '{class com.example.demo.DemoApplication}', contextInitializerClasses = '[]', activeProfiles = '{}', propertySourceLocations = '{}', propertySourceProperties = '{org.springframework.boot.test.context.SpringBootTestContextBootstrapper=true}', contextCustomizers = set[org.springframework.boot.test.autoconfigure.properties.PropertyMappingContextCustomizer@0, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverContextCustomizerFactory$Customizer@16a01d9c, org.springframework.boot.test.context.filter.ExcludeFilterContextCustomizer@326e6f60, org.springframework.boot.test.json.DuplicateJsonObjectContextCustomizerFactory$DuplicateJsonObjectContextCustomizer@78d9803c, org.springframework.boot.test.mock.mockito.MockitoContextCustomizer@0, org.springframework.boot.test.web.client.TestRestTemplateContextCustomizer@16a6a53a], contextLoader = 'org.springframework.boot.test.context.SpringBootContextLoader', parent = [null]], attributes = map[[empty]]], class annotated with @DirtiesContext [false] with mode [null].
Gradle Test Executor 6 finished executing tests.
> Task :test FAILED
Hoverfly has not become healthy in 10 seconds
java.lang.IllegalStateException: Hoverfly has not become healthy in 10 seconds
at io.specto.hoverfly.junit.core.Hoverfly.waitForHoverflyToBecomeHealthy(Hoverfly.java:543)
at io.specto.hoverfly.junit.core.Hoverfly.start(Hoverfly.java:145)
at io.specto.hoverfly.junit5.HoverflyExtension.beforeAll(HoverflyExtension.java:114)
at org.junit.jupiter.engine.descriptor.ClassTestDescriptor.lambda$invokeBeforeAllCallbacks$4(ClassTestDescriptor.java:213)
at org.junit.jupiter.engine.execution.ThrowableCollector.execute(ThrowableCollector.java:40)
at org.junit.jupiter.engine.descriptor.ClassTestDescriptor.invokeBeforeAllCallbacks(ClassTestDescriptor.java:213)
at org.junit.jupiter.engine.descriptor.ClassTestDescriptor.before(ClassTestDescriptor.java:148)
at org.junit.jupiter.engine.descriptor.ClassTestDescriptor.before(ClassTestDescriptor.java:61)
at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$5(NodeTestTask.java:132)
at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$7(NodeTestTask.java:125)
at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:135)
at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:123)
at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:122)
at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:80)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1540)
at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.invokeAll(SameThreadHierarchicalTestExecutorService.java:38)
at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$5(NodeTestTask.java:139)
at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$7(NodeTestTask.java:125)
at org.junit.platform.engine.support.hierarchical.Node.around(Node.java:135)
at org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$8(NodeTestTask.java:123)
at org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:73)
at org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:122)
at org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:80)
at org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.submit(SameThreadHierarchicalTestExecutorService.java:32)
at org.junit.platform.engine.support.hierarchical.HierarchicalTestExecutor.execute(HierarchicalTestExecutor.java:57)
at org.junit.platform.engine.support.hierarchical.HierarchicalTestEngine.execute(HierarchicalTestEngine.java:51)
at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:170)
at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:154)
at org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:90)
at org.gradle.api.internal.tasks.testing.junitplatform.JUnitPlatformTestClassProcessor$CollectAllTestClassesExecutor.processAllTestClasses(JUnitPlatformTestClassProcessor.java:99)
at org.gradle.api.internal.tasks.testing.junitplatform.JUnitPlatformTestClassProcessor$CollectAllTestClassesExecutor.access$000(JUnitPlatformTestClassProcessor.java:79)
at org.gradle.api.internal.tasks.testing.junitplatform.JUnitPlatformTestClassProcessor.stop(JUnitPlatformTestClassProcessor.java:75)
at org.gradle.api.internal.tasks.testing.SuiteTestClassProcessor.stop(SuiteTestClassProcessor.java:61)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
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:94)
at com.sun.proxy.$Proxy2.stop(Unknown Source)
at org.gradle.api.internal.tasks.testing.worker.TestWorker.stop(TestWorker.java:132)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:36)
at org.gradle.internal.dispatch.ReflectionDispatch.dispatch(ReflectionDispatch.java:24)
at org.gradle.internal.remote.internal.hub.MessageHubBackedObjectConnection$DispatchWrapper.dispatch(MessageHubBackedObjectConnection.java:182)
at org.gradle.internal.remote.internal.hub.MessageHubBackedObjectConnection$DispatchWrapper.dispatch(MessageHubBackedObjectConnection.java:164)
at org.gradle.internal.remote.internal.hub.MessageHub$Handler.run(MessageHub.java:413)
at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:64)
at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:48)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:56)
at java.base/java.lang.Thread.run(Thread.java:834)
Test > initializationError FAILED
java.lang.IllegalStateException: Hoverfly has not become healthy in 10 seconds
version info
plugins {
id 'org.springframework.boot' version '2.2.0.RELEASE'
id 'io.spring.dependency-management' version '1.0.10.RELEASE'
id 'java'
}
group = 'com.example'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = '8'
repositories {
mavenCentral()
}
dependencies {
implementation 'org.springframework.boot:spring-boot-starter'
testImplementation('org.springframework.boot:spring-boot-starter-test') {
exclude group: 'org.junit.vintage', module: 'junit-vintage-engine'
}
testImplementation("org.junit.platform:junit-platform-launcher:1.0.1")
testImplementation("org.junit.jupiter:junit-jupiter-engine:5.0.1")
testImplementation("io.specto:hoverfly-java-junit5:0.13.0")
testImplementation("org.junit.platform:junit-platform-launcher:1.0.1")
compile group: 'org.junit.platform', name: 'junit-platform-gradle-plugin', version: '1.0.3'
}
test {
useJUnitPlatform{
includeEngines 'junit-jupiter', 'junit-vintage'
}
}
bug