No effective change - add additional tests

This commit is contained in:
rob bygrave
2018-10-15 22:13:18 +13:00
parent aa7325b249
commit 9d64352771
2 changed files with 51 additions and 0 deletions
+12
View File
@@ -2,6 +2,7 @@ package org.tests.cache;
import io.ebean.BaseTestCase;
import io.ebean.Ebean;
import org.tests.model.basic.Country;
import org.tests.model.basic.OCachedBean;
import org.ebeantest.LoggedSqlCollector;
import org.junit.Test;
@@ -41,4 +42,15 @@ public class TestBeanCache extends BaseTestCase {
assertThat(sql).isEmpty();
}
@Test
public void find_whenNotExits() {
Country country = Ebean.find(Country.class)
.where()
.eq("name","NotValid")
.findOne();
assertThat(country).isNull();
}
}