Search in sources :

Example 1 with NullRenderContext

use of com.github.bordertech.wcomponents.render.nil.NullRenderContext in project wcomponents by BorderTech.

the class ValidateXMLInterceptor_Test method testUnknownRenderContext.

@Test
public void testUnknownRenderContext() {
    MockLabel label = new MockLabel("testUnknownRenderContext");
    InterceptorComponent interceptor = new ValidateXMLInterceptor();
    interceptor.setBackingComponent(label);
    interceptor.paint(new NullRenderContext());
    Assert.assertEquals("Label should have been painted", label.getPaintCount(), 1);
}
Also used : NullRenderContext(com.github.bordertech.wcomponents.render.nil.NullRenderContext) MockLabel(com.github.bordertech.wcomponents.MockLabel) Test(org.junit.Test)

Aggregations

MockLabel (com.github.bordertech.wcomponents.MockLabel)1 NullRenderContext (com.github.bordertech.wcomponents.render.nil.NullRenderContext)1 Test (org.junit.Test)1