Example usage for org.apache.wicket.markup.html.form SimpleFormComponentLabel getDefaultModelObjectAsString

List of usage examples for org.apache.wicket.markup.html.form SimpleFormComponentLabel getDefaultModelObjectAsString

Introduction

In this page you can find the example usage for org.apache.wicket.markup.html.form SimpleFormComponentLabel getDefaultModelObjectAsString.

Prototype

public final String getDefaultModelObjectAsString() 

Source Link

Document

Gets a model object as a string.

Usage

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"));
}