Search in sources :

Example 1 with DefaultValueFromOtherConstructor

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

the class RealmTests method createObject_defaultValueFromOtherConstructor.

@Test
public void createObject_defaultValueFromOtherConstructor() {
    realm.beginTransaction();
    DefaultValueFromOtherConstructor obj = realm.createObject(DefaultValueFromOtherConstructor.class);
    realm.commitTransaction();
    assertEquals(42, obj.getFieldLong());
}
Also used : DefaultValueFromOtherConstructor(io.realm.entities.DefaultValueFromOtherConstructor) Test(org.junit.Test) UiThreadTest(androidx.test.annotation.UiThreadTest)

Aggregations

UiThreadTest (androidx.test.annotation.UiThreadTest)1 DefaultValueFromOtherConstructor (io.realm.entities.DefaultValueFromOtherConstructor)1 Test (org.junit.Test)1