@Test public void objectBooleanAnnotatedTest() { Boolean objectBoolean = new Boolean(true); save(new BooleanFieldAnnotatedModel(objectBoolean)); BooleanFieldAnnotatedModel model = SugarRecord.findById(BooleanFieldAnnotatedModel.class, 1); assertEquals(objectBoolean, model.getBoolean()); }
@Test public void rawBooleanAnnotatedTest() { save(new BooleanFieldAnnotatedModel(true)); BooleanFieldAnnotatedModel model = SugarRecord.findById(BooleanFieldAnnotatedModel.class, 1); assertEquals(true, model.getRawBoolean()); }
@Test public void nullBooleanAnnotatedTest() { save(new BooleanFieldAnnotatedModel()); BooleanFieldAnnotatedModel model = SugarRecord.findById(BooleanFieldAnnotatedModel.class, 1); assertNull(model.getBoolean()); }