assertEquals("0", w.asText(value));
}
public void testHtmlValue() throws Exception {
PercentInputWidget w = injector.getInstance(PercentInputWidget.class);
w.setDecimalPlaces(0);
Double value = .45;
String output = w.render("field", value, new LinkedHashMap<String, Object>());
String html = "<input type=\"text\" name=\"field\" value=\"45\" />";
assertEquals(html, output);
assertEquals("45", w.asText(value));
}