mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
Fix test for TestDbArray_basic.nullItems() for DB's that don't support ARRAY type
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user