Search in sources :

Example 11 with WField

use of com.github.bordertech.wcomponents.WField in project wcomponents by BorderTech.

the class WFieldRenderer_Test method testRendererCorrectlyConfigured.

/**
 * Test the Layout is correctly configured.
 */
@Test
public void testRendererCorrectlyConfigured() {
    WField field = new WFieldLayout().addField("test1", new WTextArea());
    Assert.assertTrue("Incorrect renderer supplied", getWebXmlRenderer(field) instanceof WFieldRenderer);
}
Also used : WTextArea(com.github.bordertech.wcomponents.WTextArea) WField(com.github.bordertech.wcomponents.WField) WFieldLayout(com.github.bordertech.wcomponents.WFieldLayout) Test(org.junit.Test)

Aggregations

WField (com.github.bordertech.wcomponents.WField)11 WFieldLayout (com.github.bordertech.wcomponents.WFieldLayout)10 Test (org.junit.Test)7 WTextField (com.github.bordertech.wcomponents.WTextField)4 WFieldSet (com.github.bordertech.wcomponents.WFieldSet)3 Action (com.github.bordertech.wcomponents.Action)2 ActionEvent (com.github.bordertech.wcomponents.ActionEvent)2 WContainer (com.github.bordertech.wcomponents.WContainer)2 WTextArea (com.github.bordertech.wcomponents.WTextArea)2 ByLabel (com.github.bordertech.wcomponents.test.selenium.ByLabel)2 WebDriver (org.openqa.selenium.WebDriver)2 WebElement (org.openqa.selenium.WebElement)2 Input (com.github.bordertech.wcomponents.Input)1 SubordinateTarget (com.github.bordertech.wcomponents.SubordinateTarget)1 WButton (com.github.bordertech.wcomponents.WButton)1 WDropdown (com.github.bordertech.wcomponents.WDropdown)1 WHeading (com.github.bordertech.wcomponents.WHeading)1 WHorizontalRule (com.github.bordertech.wcomponents.WHorizontalRule)1 WLabel (com.github.bordertech.wcomponents.WLabel)1 WMessageBox (com.github.bordertech.wcomponents.WMessageBox)1