File tree Expand file tree Collapse file tree 1 file changed +21
-0
lines changed
spring-mvc-java/src/test/java/com/baeldung Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change 1+ package com .baeldung ;
2+
3+ import org .junit .Test ;
4+ import org .junit .runner .RunWith ;
5+ import org .springframework .test .context .ContextConfiguration ;
6+ import org .springframework .test .context .junit4 .SpringJUnit4ClassRunner ;
7+ import org .springframework .test .context .support .AnnotationConfigContextLoader ;
8+ import org .springframework .test .context .web .WebAppConfiguration ;
9+
10+ import com .baeldung .config .AppInitializer ;
11+
12+ @ RunWith (SpringJUnit4ClassRunner .class )
13+ @ ContextConfiguration (classes = { AppInitializer .class }, loader = AnnotationConfigContextLoader .class )
14+ @ WebAppConfiguration
15+ public class SpringContextIntegrationTest {
16+
17+ @ Test
18+ public void whenSpringContextIsBootstrapped_thenNoExceptions () {
19+
20+ }
21+ }
You can’t perform that action at this time.
0 commit comments