From 2983e1c26ae5a49dd41459d050b3b92cb30676ab Mon Sep 17 00:00:00 2001 From: Andrey Shcherbakov Date: Sat, 2 Feb 2019 20:54:09 +0100 Subject: [PATCH] Add the live test to spring-exceptions module --- ...textIntegrationTest.java => SpringContextLiveTest.java} | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) rename spring-exceptions/src/test/java/org/baeldung/{SpringContextIntegrationTest.java => SpringContextLiveTest.java} (63%) diff --git a/spring-exceptions/src/test/java/org/baeldung/SpringContextIntegrationTest.java b/spring-exceptions/src/test/java/org/baeldung/SpringContextLiveTest.java similarity index 63% rename from spring-exceptions/src/test/java/org/baeldung/SpringContextIntegrationTest.java rename to spring-exceptions/src/test/java/org/baeldung/SpringContextLiveTest.java index 492673b168..ece7e0e730 100644 --- a/spring-exceptions/src/test/java/org/baeldung/SpringContextIntegrationTest.java +++ b/spring-exceptions/src/test/java/org/baeldung/SpringContextLiveTest.java @@ -1,16 +1,15 @@ package org.baeldung; -import org.baeldung.spring.config.CoreConfig; -import org.baeldung.spring.config.MvcConfig; import org.baeldung.spring.config.PersistenceConfig; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.test.context.ContextConfiguration; import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; +import org.springframework.test.context.support.AnnotationConfigContextLoader; @RunWith(SpringJUnit4ClassRunner.class) -@ContextConfiguration(classes = { CoreConfig.class, MvcConfig.class, PersistenceConfig.class}) -public class SpringContextIntegrationTest { +@ContextConfiguration(classes = { PersistenceConfig.class }, loader = AnnotationConfigContextLoader.class) +public class SpringContextLiveTest { @Test public void whenSpringContextIsBootstrapped_thenNoExceptions() {