Fixed tests that modify BasicData (#1530)

This commit is contained in:
Roland Praml
2018-11-03 16:38:26 +13:00
committed by Rob Bygrave
parent 662ffdd070
commit 61eedb4e9a
17 changed files with 92 additions and 10 deletions
@@ -46,6 +46,9 @@ public class TestUpdatePartial extends BaseTestCase {
Ebean.save(c3);
checkDbStatusValue(c.getId(), "N");
// cleanup
Ebean.delete(Customer.class, c.getId());
}
private void checkDbStatusValue(Integer custId, String dbStatus) {
@@ -71,5 +74,9 @@ public class TestUpdatePartial extends BaseTestCase {
Ebean.save(customerWithoutChanges);
assertThat(customerWithoutChanges.getUpdtime()).isEqualToIgnoringMillis(customer.getUpdtime());
// cleanup
Ebean.delete(customerWithoutChanges);
}
}