#1419 - Refactor - saveAll() and deleteAll() ... when collections are empty skip transaction init check

This commit is contained in:
rob bygrave
2018-06-12 22:08:17 +12:00
parent 81897bd54d
commit 91c4eca528
2 changed files with 38 additions and 15 deletions
@@ -94,6 +94,26 @@ public class EbeanServer_saveAllTest extends BaseTestCase {
}
@Test
public void deleteAll_withNull() {
Ebean.deleteAll(null);
}
@Test
public void deleteAll_withEmpty() {
Ebean.saveAll(beans(0));
}
@Test
public void saveAll_withNull() {
Ebean.saveAll(null);
}
@Test
public void saveAll_withEmpty() {
Ebean.saveAll(beans(0));
}
@Test
public void saveAll_withTransaction() {