예제 #1
0
 public void test_toString_boolean_String_String_String() {
   assertEquals("Y", BooleanUtils.toString(true, "Y", "N"));
   assertEquals("N", BooleanUtils.toString(false, "Y", "N"));
 }
예제 #2
0
 public void test_toString_Boolean_String_String_String() {
   assertEquals("U", BooleanUtils.toString((Boolean) null, "Y", "N", "U"));
   assertEquals("Y", BooleanUtils.toString(Boolean.TRUE, "Y", "N", "U"));
   assertEquals("N", BooleanUtils.toString(Boolean.FALSE, "Y", "N", "U"));
 }