public void testCreateWidgetUser1() throws ProviderException { Widget widget1 = provider.createWidget("test widget"); Widget widget2 = provider.createWidget("test widget 2"); assertEquals("test widget", widget1.getName()); assertEquals("test widget 2", widget2.getName()); }
public void testGetWidgetByUid() throws ProviderException { Widget widget1 = provider.createWidget("test widget"); Widget widget2 = provider.createWidget("test widget 2"); assertEquals(widget1.getName(), provider.getWidgetByUid(widget1.getUid()).getName()); assertEquals(widget2.getName(), provider.getWidgetByUid(widget2.getUid()).getName()); }