Beispiel #1
0
 // -----------------------------------------------------------------------
 public void test_toInteger_boolean_int_int() {
   assertEquals(6, BooleanUtils.toInteger(true, 6, 7));
   assertEquals(7, BooleanUtils.toInteger(false, 6, 7));
 }
Beispiel #2
0
 public void test_toInteger_Boolean_int_int_int() {
   assertEquals(6, BooleanUtils.toInteger(Boolean.TRUE, 6, 7, 8));
   assertEquals(7, BooleanUtils.toInteger(Boolean.FALSE, 6, 7, 8));
   assertEquals(8, BooleanUtils.toInteger(null, 6, 7, 8));
 }
Beispiel #3
0
 // -----------------------------------------------------------------------
 public void test_toInteger_boolean() {
   assertEquals(1, BooleanUtils.toInteger(true));
   assertEquals(0, BooleanUtils.toInteger(false));
 }