mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
#1114 - Deprecate findUnique() - please migrate to findOne() - update tests
This commit is contained in:
@@ -20,7 +20,7 @@ public class TestQueryFindReadOnly extends BaseTestCase {
|
||||
|
||||
Ebean.save(a0);
|
||||
|
||||
Article ar1 = Ebean.find(Article.class).setReadOnly(true).setId(a0.getId()).findUnique();
|
||||
Article ar1 = Ebean.find(Article.class).setReadOnly(true).setId(a0.getId()).findOne();
|
||||
|
||||
Assert.assertNotNull(ar1);
|
||||
Assert.assertTrue("readonly", Ebean.getBeanState(ar1).isReadOnly());
|
||||
|
||||
Reference in New Issue
Block a user