テストを実行すると、method()の呼び出しでハングします。私は何か間違ったことをしていますか?ヘルプ!
@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(locations = {"beans.xml"})
@Transactional(rollbackFor = Exception.class)
public class Test {
@Test
public void test() {
itemUnderTestDao.method();
// ...
}
}
public class ItemUnderTestDao {
@Transactional(propagation = Propagation.REQUIRES_NEW)
public void method() {
// ...
}
}
上記のコードを忘れてください。Eclipseプロジェクト(springなどの依存関係を除く)をhttp://www44.zippyshare.com/v/46865082/file.htmlにアップロードしました。テストに合格する方法に関するすべての入力は本当にありがたいです!2つのsqliteデータベースと2つのdataSourcesがある場合のテストパス...