예제 #1
0
    @Test
    public void shouldReturnFalseStringWhenFalseBooleanIsSupplied() throws Exception {
      BooleanField field =
          new BooleanField(new HashMap<String, Object>(), _spanishLocale, _usLocale);

      assertEquals("false", field.convertToData(false));
    }
예제 #2
0
    @Test
    public void shouldReturnNullWhenNullBooleanIsSupplied() throws Exception {
      BooleanField field =
          new BooleanField(new HashMap<String, Object>(), _spanishLocale, _usLocale);

      assertNull(field.convertToData(null));
    }