@BeforeTransaction public void beforeTransaction() { fail("always failing beforeTransaction()"); } }
@BeforeTransaction default void beforeTransaction() { invoked(true); } }
@BeforeTransaction void beforeTransaction() { fail("always failing beforeTransaction()"); } }
@BeforeTransaction public void beforeTransaction() { invoked(true); }
@BeforeTransaction public void beforeTransaction() { invoked(true); }
@BeforeTransaction public void beforeTransaction() { invoked(true); }
@BeforeTransaction public void beforeTransaction() { invoked(true); }
@BeforeTransaction public void beforeTransaction() { invoked(true); }
@BeforeTransaction public void beforeTransaction() { assertNumUsers(0); }
@BeforeTransaction public void beforeTransaction() { deleteFromTables("user"); executeSqlScript("classpath:/org/springframework/test/context/jdbc/data.sql", false); }
@BeforeTransaction void beforeTransaction() { assertNumRowsInPersonTable(1, "before a transactional test method"); assertAddPerson(YODA); }
@BeforeTransaction public void beforeTransaction() { txManager1.clear(); txManager2.clear(); }
@BeforeTransaction public void beforeTransaction() { assertNumRowsInPersonTable(0, "before a transactional test method"); assertAddPerson(YODA); }
@BeforeTransaction public void beforeTransaction() { txManager1.clear(); txManager2.clear(); }
@BeforeTransaction public void beforeTransaction() { txManager1.clear(); txManager2.clear(); }
@BeforeTransaction public void beforeTransaction() { txManager1.clear(); txManager2.clear(); }
@BeforeTransaction @AfterTransaction public void verifyPreAndPostTransactionDatabaseState() { assertNumUsers(0); }
@BeforeTransaction @AfterTransaction void checkInitialDatabaseState() { assertEquals(0, countRowsInTable("user")); }
@BeforeTransaction public void beforeTransaction() { assertEquals("Verifying the number of rows in the person table before a transactional test method.", 1, countRowsInPersonTable()); assertEquals("Adding yoda", 1, addPerson(YODA)); }
@BeforeTransaction void beforeTransaction() { assertInTransaction(false); this.inTransaction = true; BeforeAndAfterTransactionAnnotationTests.numBeforeTransactionCalls++; clearPersonTable(jdbcTemplate); assertEquals("Adding yoda", 1, addPerson(jdbcTemplate, YODA)); }