How to run test suit with Spring TestContext ?
- by lisak
Hey,
I can't figure out, how to set up following scenario with Sprint TestContext with either JUnit4 or testNG:
@BeforeTestSuit - oneTimeSetUp
@BeforeClass
@Before - setUp
@Test - testEmptyCollection
@After - tearDown
@Before - setUp
@Test - testEmptyCollection
@After - tearDown
@AfterClass
@BeforeClass
@Before - setUp
@Test - testOneItemCollection
@After - tearDown
@Before - setUp
@Test - testEmptyCollection
@After - tearDown
@AfterClass
@AfterTestSuit - oneTimeTearDown
Could please anybody help me out here ?
My architecture is a parent class with @RunWith(SpringJUnit4ClassRunner.class) that is extended with particular test classes.