org.jlot.web.it.ServletContainer Maven / Gradle / Ivy
package org.jlot.web.it;
import org.jlot.test.TomcatConfig;
import org.jlot.test.TomcatConfigJlotIT;
import org.jlot.test.TomcatContainer;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Profile;
@Configuration
@Profile("integration")
public class ServletContainer
{
@Bean
TomcatConfig tomcatConfigJlot ( ) throws Exception
{
TomcatConfigJlotIT tomcatConfig = new TomcatConfigJlotIT();
TomcatContainer.start(tomcatConfig);
return tomcatConfig;
}
}