作者:几米身边的孩子们 | 来源:互联网 | 2023-06-04 01:48
Ihaveatestlikethis:我有这样的测试:@ContextConfiguration(locations{file:warWEB-INFapplication
I have a test like this:
我有这样的测试:
@ContextConfiguration(locatiOns= { "file:war/WEB-INF/application-context.xml" })
public class ServiceImplTest extends AbstractTestNGSpringContextTests
{
@Autowired
private Service service;
@Rollback(false)
@Test
public void testCreate()
{
.....
//save an entity to table_A
service.save(a);
}
}
The table_A will be cleaned up; how to stop this cleaning action?
table_A将被清理;如何停止这种清洁行动?
1 个解决方案