mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
Fixed tests that modify BasicData (#1530)
This commit is contained in:
committed by
Rob Bygrave
parent
662ffdd070
commit
61eedb4e9a
@@ -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);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user