No effective change - add additional tests

This commit is contained in:
rob bygrave committed 2018-10-15 22:13:18 +13:00
1 parent aa7325b249
commit 9d64352771
2 files changed
+51

No files matched your search

+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();
}
}