#1114 - Deprecate findUnique() - please migrate to findOne() - update tests

This commit is contained in:
rob bygrave
2017-09-08 22:48:46 +12:00
parent 2470486f20
commit 8c0232fdb8
67 changed files with 128 additions and 128 deletions
@@ -27,7 +27,7 @@ public class TestBasicLazy extends BaseTestCase {
ResetBasicData.reset();
Order order = Ebean.find(Order.class).select("totalAmount").setMaxRows(1).order("id")
.findUnique();
.findOne();
Assert.assertNotNull(order);
@@ -45,7 +45,7 @@ public class TestBasicLazy extends BaseTestCase {
// safety check to see if our customer we are going to use for the test has
// some contacts
Customer c = Ebean.find(Customer.class).setId(1).findUnique();
Customer c = Ebean.find(Customer.class).setId(1).findOne();
Assert.assertNotNull(c.getContacts());
Assert.assertTrue("no contacts on test customer 1", !c.getContacts().isEmpty());
@@ -75,7 +75,7 @@ public class TestBasicLazy extends BaseTestCase {
ResetBasicData.reset();
Order order = Ebean.find(Order.class).select("totalAmount").setMaxRows(1).order("id")
.findUnique();
.findOne();
Assert.assertNotNull(order);