use of io.realm.entities.pojo.InvalidRealmModel in project realm-java by realm.
the class BulkInsertTests method insert_invalidRealmModel.
@Test
public void insert_invalidRealmModel() {
InvalidRealmModel invalidRealmModel = new InvalidRealmModel();
realm.beginTransaction();
try {
realm.insert(invalidRealmModel);
fail("Expected Missing Proxy Class Exception");
} catch (RealmException ignored) {
} finally {
realm.cancelTransaction();
}
}
Aggregations