Skip to content

Instantly share code, notes, and snippets.

@eugenp
Created October 22, 2011 22:25
Show Gist options
  • Save eugenp/1306561 to your computer and use it in GitHub Desktop.
Save eugenp/1306561 to your computer and use it in GitHub Desktop.
Bootstraping a web application with Spring 3.1 and Java based Configuration, part 2 - the test
@RunWith( SpringJUnit4ClassRunner.class )
@ContextConfiguration( classes = { ApplicationConfig.class, PersistenceConfig.class },loader = AnnotationConfigContextLoader.class )
public final class SpringTest{
@Test
public final void whenSpringContextIsInstantiated_thenNoExceptions(){
// When
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment