List of usage examples for org.apache.wicket.markup.html.form SimpleFormComponentLabel getDefaultModelObjectAsString
public final String getDefaultModelObjectAsString()
From source file:org.openengsb.ui.admin.wiringPage.CheckedPanelTest.java
License:Apache License
@Test public void testLabel_shouldShowLabelModelObject() { SimpleFormComponentLabel label = (SimpleFormComponentLabel) tester .getComponentFromLastRenderedPage(checkedPanel.getId() + ":label"); assertThat(label.getDefaultModelObjectAsString(), is("testlabel")); }