|
|
|
@ -21,6 +21,7 @@ import org.junit.Test;
|
|
|
|
|
import org.springframework.boot.SpringApplication;
|
|
|
|
|
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
|
|
|
|
|
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
|
|
|
|
|
import org.springframework.boot.autoconfigure.jms.hornetq.HornetQAutoConfiguration;
|
|
|
|
|
import org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaAutoConfiguration;
|
|
|
|
|
import org.springframework.boot.autoconfigure.security.SecurityAutoConfiguration;
|
|
|
|
|
import org.springframework.boot.builder.SpringApplicationBuilder;
|
|
|
|
@ -86,14 +87,16 @@ public class BasicErrorControllerDirectMockMvcTests {
|
|
|
|
|
|
|
|
|
|
@Configuration
|
|
|
|
|
@EnableAutoConfiguration(exclude = { SecurityAutoConfiguration.class,
|
|
|
|
|
HibernateJpaAutoConfiguration.class, DataSourceAutoConfiguration.class })
|
|
|
|
|
HibernateJpaAutoConfiguration.class, DataSourceAutoConfiguration.class,
|
|
|
|
|
HornetQAutoConfiguration.class})
|
|
|
|
|
protected static class ParentConfiguration {
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Configuration
|
|
|
|
|
@EnableAutoConfiguration(exclude = { SecurityAutoConfiguration.class,
|
|
|
|
|
HibernateJpaAutoConfiguration.class, DataSourceAutoConfiguration.class })
|
|
|
|
|
HibernateJpaAutoConfiguration.class, DataSourceAutoConfiguration.class,
|
|
|
|
|
HornetQAutoConfiguration.class})
|
|
|
|
|
@EnableWebMvc
|
|
|
|
|
protected static class WebMvcIncludedConfiguration {
|
|
|
|
|
// For manual testing
|
|
|
|
@ -105,7 +108,8 @@ public class BasicErrorControllerDirectMockMvcTests {
|
|
|
|
|
|
|
|
|
|
@Configuration
|
|
|
|
|
@EnableAutoConfiguration(exclude = { SecurityAutoConfiguration.class,
|
|
|
|
|
HibernateJpaAutoConfiguration.class, DataSourceAutoConfiguration.class })
|
|
|
|
|
HibernateJpaAutoConfiguration.class, DataSourceAutoConfiguration.class,
|
|
|
|
|
HornetQAutoConfiguration.class})
|
|
|
|
|
protected static class VanillaConfiguration {
|
|
|
|
|
// For manual testingm
|
|
|
|
|
public static void main(String[] args) {
|
|
|
|
@ -116,7 +120,8 @@ public class BasicErrorControllerDirectMockMvcTests {
|
|
|
|
|
|
|
|
|
|
@Configuration
|
|
|
|
|
@EnableAutoConfiguration(exclude = { SecurityAutoConfiguration.class,
|
|
|
|
|
HibernateJpaAutoConfiguration.class, DataSourceAutoConfiguration.class })
|
|
|
|
|
HibernateJpaAutoConfiguration.class, DataSourceAutoConfiguration.class,
|
|
|
|
|
HornetQAutoConfiguration.class})
|
|
|
|
|
protected static class ChildConfiguration {
|
|
|
|
|
// For manual testing
|
|
|
|
|
public static void main(String[] args) {
|
|
|
|
|