use of com.github.bordertech.wcomponents.WButton in project wcomponents by BorderTech.
the class UIRegistryClassLoaderImpl_Test method testGetUINotRegisteredWComponent.
/**
* Test getUI - nothing registered - but WComponent creatable from key.
*/
@Test
public void testGetUINotRegisteredWComponent() {
final String key = "com.github.bordertech.wcomponents.WButton";
UIRegistryClassLoaderImpl reg = new UIRegistryClassLoaderImpl();
WComponent result = reg.getUI(key);
Assert.assertTrue("should return an instantiated WComponent", result instanceof WButton);
Assert.assertTrue("the WComponent should be in the registry", reg.isRegistered(key));
Assert.assertTrue("the WComponent should be locked", result.isLocked());
}
Aggregations