Testing for custom plugin portlet: BeanLocatorException and Transaction roll-back for services testing

后端 未结 2 1351
北海茫月
北海茫月 2020-12-28 09:45

My Problems:

  1. I can test successfully for CRUD services operation. I was doing an insert on @Before [setUp()] and delete of same data on @Aft

2条回答
  •  借酒劲吻你
    2020-12-28 10:31

    Speculation: do you really need to test the transaction? Or just the business logic around the db access? Because if so, you could try writing the unit test with EasyMock (or similar), avoiding the access to the database yet testing the functionality

提交回复
热议问题