protected void assertCommitSession() { assertEquals("should call commit on SqlSession", 1, executorInterceptor.getCommitCount()); assertEquals( "should not call rollback on SqlSession", 0, executorInterceptor.getRollbackCount()); }
protected void assertRollback() { assertEquals("should not call commit on Connection", 0, connection.getNumberCommits()); assertEquals("should call rollback on Connection", 1, connection.getNumberRollbacks()); assertEquals("should not call commit on SqlSession", 0, executorInterceptor.getCommitCount()); assertEquals("should call rollback on SqlSession", 1, executorInterceptor.getRollbackCount()); }