You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Enabling http server autostart when using javaconfig fails in 2.6.2:
@Configuration
public class HttpServerTestConfig {
@Bean
public HttpServer httpServer() {
return CitrusEndpoints.http().server().autoStart(true).port(10001).build();
}
}
@ContextConfiguration(classes = { HttpServerTestConfig.class })
public class HttpServerTest extends JUnit4CitrusTestRunner {
@CitrusEndpoint(name = "httpServer")
HttpServer httpServer;
@Test
@CitrusTest
public void sendGetStatusRequest(@CitrusResource TestContext context) {
echo("hello world");
}
}
Caused by: java.lang.IllegalStateException: STARTED
at org.eclipse.jetty.server.handler.HandlerWrapper.setServer(HandlerWrapper.java:110)
at org.eclipse.jetty.server.handler.HandlerWrapper.setHandler(HandlerWrapper.java:84)
at org.eclipse.jetty.servlet.ServletContextHandler.relinkHandlers(ServletContextHandler.java:201)
at org.eclipse.jetty.servlet.ServletContextHandler.setServletHandler(ServletContextHandler.java:507)
at com.consol.citrus.http.server.HttpServer.startup(HttpServer.java:169)
at com.consol.citrus.server.AbstractServer.start(AbstractServer.java:90)
at com.consol.citrus.server.AbstractServer.afterPropertiesSet(AbstractServer.java:162)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1637)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1574)
The text was updated successfully, but these errors were encountered:
Enabling http server autostart when using javaconfig fails in 2.6.2:
The text was updated successfully, but these errors were encountered: