Add the live test to spring-exceptions module

This commit is contained in:
Andrey Shcherbakov 2019-02-02 20:54:09 +01:00
parent 693d9d9947
commit 2983e1c26a
1 changed files with 3 additions and 4 deletions

View File

@ -1,16 +1,15 @@
package org.baeldung; package org.baeldung;
import org.baeldung.spring.config.CoreConfig;
import org.baeldung.spring.config.MvcConfig;
import org.baeldung.spring.config.PersistenceConfig; import org.baeldung.spring.config.PersistenceConfig;
import org.junit.Test; import org.junit.Test;
import org.junit.runner.RunWith; import org.junit.runner.RunWith;
import org.springframework.test.context.ContextConfiguration; import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;
import org.springframework.test.context.support.AnnotationConfigContextLoader;
@RunWith(SpringJUnit4ClassRunner.class) @RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(classes = { CoreConfig.class, MvcConfig.class, PersistenceConfig.class}) @ContextConfiguration(classes = { PersistenceConfig.class }, loader = AnnotationConfigContextLoader.class)
public class SpringContextIntegrationTest { public class SpringContextLiveTest {
@Test @Test
public void whenSpringContextIsBootstrapped_thenNoExceptions() { public void whenSpringContextIsBootstrapped_thenNoExceptions() {