mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
No effective change - add additional tests
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user