Search in sources :

Example 1 with IOSChild

use of io.realm.entities.IOSChild in project realm-java by realm.

the class IOSRealmTests method iOSDataTypesNullValues.

@Test
public void iOSDataTypesNullValues() throws IOException {
    for (String iosVersion : IOS_VERSIONS) {
        configFactory.copyRealmFromAssets(context, "ios/" + iosVersion + "-alltypes-null-value.realm", REALM_NAME);
        realm = Realm.getDefaultInstance();
        IOSAllTypes obj = realm.where(IOSAllTypes.class).findFirst();
        assertEquals(null, obj.getByteCol());
        assertEquals(null, obj.getStringCol());
        assertEquals(null, obj.getDateCol());
        assertEquals(null, obj.getChild());
        assertEquals(new RealmList<IOSChild>(), obj.getChildren());
    }
}
Also used : IOSAllTypes(io.realm.entities.IOSAllTypes) IOSChild(io.realm.entities.IOSChild) Test(org.junit.Test)

Aggregations

IOSAllTypes (io.realm.entities.IOSAllTypes)1 IOSChild (io.realm.entities.IOSChild)1 Test (org.junit.Test)1