List of usage examples for org.apache.wicket.markup.html.form AbstractSingleSelectChoice isNullValid
public boolean isNullValid()
From source file:org.geoserver.gwc.web.layer.CaseNormalizerSubformTest.java
License:Open Source License
@SuppressWarnings("unchecked") @Test/* ww w. j a v a 2 s . co m*/ public void testPageLoad() { startPage(); tester.assertComponent("form:panel:case", AbstractSingleSelectChoice.class); tester.assertComponent("form:panel:locale", AbstractSingleSelectChoice.class); AbstractSingleSelectChoice<Case> kase = (AbstractSingleSelectChoice<Case>) tester .getComponentFromLastRenderedPage("form:panel:case"); AbstractSingleSelectChoice<Locale> locale = (AbstractSingleSelectChoice<Locale>) tester .getComponentFromLastRenderedPage("form:panel:locale"); assertThat(kase.isNullValid(), is(false)); assertThat(locale.isNullValid(), is(true)); }