@Test public void shouldReturnFalseStringWhenFalseBooleanIsSupplied() throws Exception { BooleanField field = new BooleanField(new HashMap<String, Object>(), _usLocale, _usLocale); field.setCurrentValue(false); assertEquals("No", field.toFormattedString()); }
@Test public void shouldReturnNullWhenNullBooleanIsSupplied() throws Exception { BooleanField field = new BooleanField(new HashMap<String, Object>(), _usLocale, _usLocale); field.setCurrentValue(null); assertNull(field.toFormattedString()); }