コード例 #1
0
 @Test
 public void objectBooleanAnnotatedTest() {
   Boolean objectBoolean = new Boolean(true);
   save(new BooleanFieldAnnotatedModel(objectBoolean));
   BooleanFieldAnnotatedModel model = SugarRecord.findById(BooleanFieldAnnotatedModel.class, 1);
   assertEquals(objectBoolean, model.getBoolean());
 }
コード例 #2
0
 @Test
 public void rawBooleanAnnotatedTest() {
   save(new BooleanFieldAnnotatedModel(true));
   BooleanFieldAnnotatedModel model = SugarRecord.findById(BooleanFieldAnnotatedModel.class, 1);
   assertEquals(true, model.getRawBoolean());
 }
コード例 #3
0
 @Test
 public void nullBooleanAnnotatedTest() {
   save(new BooleanFieldAnnotatedModel());
   BooleanFieldAnnotatedModel model = SugarRecord.findById(BooleanFieldAnnotatedModel.class, 1);
   assertNull(model.getBoolean());
 }