Fix test for TestDbArray_basic.nullItems() for DB's that don't support ARRAY type

This commit is contained in:
rob bygrave
2019-10-10 15:10:44 +13:00
parent fdc67b3ce5
commit a01ba128e5
@@ -4,6 +4,7 @@ import io.ebean.BaseTestCase;
import io.ebean.Ebean;
import io.ebean.Query;
import io.ebean.SqlRow;
import io.ebean.annotation.ForPlatform;
import io.ebean.annotation.IgnorePlatform;
import io.ebean.annotation.Platform;
import org.ebeantest.LoggedSqlCollector;
@@ -192,6 +193,10 @@ public class TestDbArray_basic extends BaseTestCase {
Ebean.deleteAll(all);
}
/**
* Platforms without Array support use JSON which by default isn't including null values.
*/
@ForPlatform({Platform.H2, Platform.POSTGRES})
@Test
public void nullItems() {
EArrayBean bean = new EArrayBean();