LimitLineComponentProvider extends AbstractComponentProvider { @Override public Collection<ComponentTypeInfo> getComponentTypes() { return Collections.singleton(componentTypeInfo); } LimitLineComponentProvider(); @Override Collection<ComponentTypeInfo> getComponentTypes(); @Override Collection<ViewInfo> getViews(String componentTypeId); @Override Collection<MenuItemInfo> getMenuItemInfos(); @Override Collection<PolicyInfo> getPolicyInfos(); @Override T getAsset(TypeInfo<?> typeInfo, Class<T> assetClass);  }
@Test public void testComponentTypes() { Assert.assertEquals(provider.getComponentTypes().iterator().next().getComponentClass(),LimitLineComponent.class); Assert.assertTrue(provider.getComponentTypes().iterator().next().isCreatable()); Assert.assertEquals(provider.getComponentTypes().size(), 1); }