@Test public void shouldBeAbleToConvertNumbers() { assertThat((Boolean) converter.convert("", boolean.class, bundle), is(equalTo(false))); assertThat((Boolean) converter.convert("false", boolean.class, bundle), is(equalTo(false))); assertThat((Boolean) converter.convert("true", boolean.class, bundle), is(equalTo(true))); assertThat((Boolean) converter.convert("True", boolean.class, bundle), is(equalTo(true))); }
public Boolean convert(String value, Class<? extends Boolean> type, ResourceBundle bundle) { if (isNullOrEmpty(value)) { return false; } return booleanConverter.convert(value, type, bundle); }
PrimitiveBooleanConverter implements Converter<Boolean> { public Boolean convert(String value, Class<? extends Boolean> type, ResourceBundle bundle) { if (isNullOrEmpty(value)) { return false; } return booleanConverter.convert(value, type, bundle); } }
PrimitiveBooleanConverter implements Converter<Boolean> { public Boolean convert(String value, Class<? extends Boolean> type, ResourceBundle bundle) { if (isNullOrEmpty(value)) { return false; } return booleanConverter.convert(value, type, bundle); }  }
PrimitiveBooleanConverter implements Converter<Boolean> { public Boolean convert(String value, Class<? extends Boolean> type, ResourceBundle bundle) { if (isNullOrEmpty(value)) { return false; } return booleanConverter.convert(value, type, bundle); }  Boolean convert(String value, Class<? extends Boolean> type, ResourceBundle bundle); }
PrimitiveBooleanConverter implements Converter<Boolean> { public Boolean convert(String value, Class<? extends Boolean> type, ResourceBundle bundle) { if (isNullOrEmpty(value)) { return false; } return booleanConverter.convert(value, type, bundle); }  Boolean convert(String value, Class<? extends Boolean> type, ResourceBundle bundle);  }