How do you define Spring based Junit classs?
@ContextConfiguration(locations="file:src/test/resources/ApplicationContext.xml")
@Transactional(propagation=Propagation.SUPPORTS,readOnly=true)
public class BusinessUnitListServiceImplTest extends AbstractTransactionalJUnit38SpringContextTests{
@BeforeClass
public static void setUpBeforeClass() throws Exception {
}
@AfterClass
public static void tearDownAfterClass() throws Exception {
}
@Before
protected void setUp() throws Exception {
super.setUp();
}
@After
protected void tearDown() throws Exception {
super.tearDown();
}
public void testAddBusinessUnitList(){
//your unit testings
}
}
@Transactional(propagation=Propagation.SUPPORTS,readOnly=true)
public class BusinessUnitListServiceImplTest extends AbstractTransactionalJUnit38SpringContextTests{
@BeforeClass
public static void setUpBeforeClass() throws Exception {
}
@AfterClass
public static void tearDownAfterClass() throws Exception {
}
@Before
protected void setUp() throws Exception {
super.setUp();
}
@After
protected void tearDown() throws Exception {
super.tearDown();
}
public void testAddBusinessUnitList(){
//your unit testings
}
}
Comments
Post a Comment