示例#1
0
 public void test_toStringOnOff_boolean() {
   assertEquals("on", BooleanUtils.toStringOnOff(true));
   assertEquals("off", BooleanUtils.toStringOnOff(false));
 }
示例#2
0
 public void test_toStringOnOff_Boolean() {
   assertEquals(null, BooleanUtils.toStringOnOff((Boolean) null));
   assertEquals("on", BooleanUtils.toStringOnOff(Boolean.TRUE));
   assertEquals("off", BooleanUtils.toStringOnOff(Boolean.FALSE));
 }