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