Failing test for idIn() empty

This commit is contained in:
rob bygrave
2020-02-01 13:18:42 +13:00
parent 840cb2ee7b
commit e3dba6bfe1
@@ -2,13 +2,13 @@ package org.tests.query;
import io.ebean.BaseTestCase;
import io.ebean.Ebean;
import org.junit.Test;
import org.tests.model.basic.Customer;
import org.tests.model.basic.ResetBasicData;
import org.junit.Test;
import java.util.List;
import static org.junit.Assert.assertNotNull;
import static org.assertj.core.api.Assertions.assertThat;
public class TestQueryInIdTypeConversion extends BaseTestCase {
@@ -18,7 +18,15 @@ public class TestQueryInIdTypeConversion extends BaseTestCase {
ResetBasicData.reset();
List<Customer> list = Ebean.find(Customer.class).where().idIn("1", "2").findList();
assertThat(list).isNotEmpty();
}
assertNotNull(list);
@Test
public void test_emptyList() {
ResetBasicData.reset();
List<Customer> list = Ebean.find(Customer.class).where().idIn().findList();
assertThat(list).isEmpty();
}
}