package <%=@package%>.integration.<%=@model_name.downcase%>; <%=@licence%> import org.springframework.boot.autoconfigure.EnableAutoConfiguration; import org.springframework.boot.orm.jpa.EntityScan; import org.springframework.context.annotation.ComponentScan; import org.springframework.context.annotation.Configuration; import org.springframework.data.jpa.repository.config.EnableJpaRepositories; import org.springframework.data.web.config.EnableSpringDataWebSupport; import org.springframework.hateoas.config.EnableHypermediaSupport; import org.springframework.transaction.annotation.EnableTransactionManagement; import org.springframework.web.servlet.config.annotation.EnableWebMvc; import org.springframework.web.servlet.config.annotation.WebMvcConfigurerAdapter; /** * Configuration class for <%=@package%> integration test. * @author <%=@user_name%> */ @Configuration <%if @full%>@ComponentScan(basePackages = {"<%=@package%>.repository", "<%=@package%>.controller", "<%=@package%>.assembler", "<%=@package%>.resource"}) <%else%>@ComponentScan(basePackages = "<%=@package%>.repository")<%end%> @EnableHypermediaSupport(type = {EnableHypermediaSupport.HypermediaType.HAL}) @EnableSpringDataWebSupport @EnableWebMvc @EnableAutoConfiguration @EnableJpaRepositories(basePackages = "<%=@package%>.repository") @EnableTransactionManagement @EntityScan(basePackages = {"<%=@package%>.model"}) public class <%=@model_name%>IntegrationTestConfig extends WebMvcConfigurerAdapter { }