@Test(expected = RegistryException.class) public void testCreateComponentFamilyDuplicate() throws Exception { componentRegistry.createComponentFamily("TestComponentFamily", componentProfile, "Some description", null, null); componentRegistry.createComponentFamily("TestComponentFamily", componentProfile, "Some description", null, null); }
@Test(expected = RegistryException.class) public void testCreateComponentFamilyDuplicate() throws Exception { componentRegistry.createComponentFamily("TestComponentFamily", componentProfile, "Some description", null, null); componentRegistry.createComponentFamily("TestComponentFamily", componentProfile, "Some description", null, null); }
@Test(expected = RegistryException.class) public void testCreateComponentFamilyNullName() throws Exception { componentRegistry.createComponentFamily(null, componentProfile, "Some description", null, null); }
@Test(expected = RegistryException.class) public void testCreateComponentFamilyNullProfile() throws Exception { componentRegistry.createComponentFamily("TestComponentFamily", null, "Some description", null, null); }
@Test(expected = RegistryException.class) public void testCreateComponentFamilyNullProfile() throws Exception { componentRegistry.createComponentFamily("TestComponentFamily", null, "Some description", null, null); }
@Test(expected = RegistryException.class) public void testCreateComponentFamilyNullName() throws Exception { componentRegistry.createComponentFamily(null, componentProfile, "Some description", null, null); }
@Before public void setup() throws Exception { URL componentProfileUrl = getClass().getClassLoader().getResource( "ValidationComponent.xml"); assertNotNull(componentProfileUrl); componentProfile = ComponentUtil.makeProfile(componentProfileUrl); componentRegistry.addComponentProfile(componentProfile, null, null); URL dataflowUrl = getClass().getClassLoader().getResource( "beanshell_test.t2flow"); assertNotNull(dataflowUrl); dataflow = new FileManagerImpl().openDataflowSilently( new T2FlowFileType(), dataflowUrl).getDataflow(); componentFamily = componentRegistry.createComponentFamily( "Test Component Family", componentProfile, "Some description", null, null); }
@Before public void setup() throws Exception { URL componentProfileUrl = getClass().getClassLoader().getResource( "ValidationComponent.xml"); assertNotNull(componentProfileUrl); componentProfile = ComponentUtil.makeProfile(componentProfileUrl); componentRegistry.addComponentProfile(componentProfile, null, null); URL dataflowUrl = getClass().getClassLoader().getResource( "beanshell_test.t2flow"); assertNotNull(dataflowUrl); dataflow = new FileManagerImpl().openDataflowSilently( new T2FlowFileType(), dataflowUrl).getDataflow(); componentFamily = componentRegistry.createComponentFamily( "Test Component Family", componentProfile, "Some description", null, null); }
@Before public void setUp() throws Exception { URL dataflowUrl = getClass().getClassLoader().getResource( "beanshell_test.t2flow"); assertNotNull(dataflowUrl); dataflow = FileManager.getInstance() .openDataflowSilently(new T2FlowFileType(), dataflowUrl) .getDataflow(); URL componentProfileUrl = getClass().getClassLoader().getResource( "ValidationComponent.xml"); assertNotNull(componentProfileUrl); Profile componentProfile = ComponentUtil .makeProfile(componentProfileUrl); componentFamily = componentRegistry.createComponentFamily( "Test Component Family", componentProfile, "Some description", null, null); componentVersion = componentFamily.createComponentBasedOn( "Test Component", "Some description", dataflow); }
@Before public void setUp() throws Exception { URL dataflowUrl = getClass().getClassLoader().getResource( "beanshell_test.t2flow"); assertNotNull(dataflowUrl); dataflow = FileManager.getInstance() .openDataflowSilently(new T2FlowFileType(), dataflowUrl) .getDataflow(); URL componentProfileUrl = getClass().getClassLoader().getResource( "ValidationComponent.xml"); assertNotNull(componentProfileUrl); Profile componentProfile = ComponentUtil .makeProfile(componentProfileUrl); componentFamily = componentRegistry.createComponentFamily( "Test Component Family", componentProfile, "Some description", null, null); componentVersion = componentFamily.createComponentBasedOn( "Test Component", "Some description", dataflow); }
@Test public void testGetComponentFamilies() throws Exception { assertEquals(0, componentRegistry.getComponentFamilies().size()); assertEquals(0, componentRegistry.getComponentFamilies().size()); Family componentFamily = componentRegistry.createComponentFamily( "TestComponentFamily", componentProfile, "Some description", null, null); assertEquals(1, componentRegistry.getComponentFamilies().size()); assertTrue(componentRegistry.getComponentFamilies().contains( componentFamily)); componentRegistry.removeComponentFamily(componentFamily); assertEquals(0, componentRegistry.getComponentFamilies().size()); }
@Before public void setUp() throws Exception { URL dataflowUrl = getClass().getClassLoader().getResource( "beanshell_test.t2flow"); assertNotNull(dataflowUrl); dataflow = FileManager.getInstance() .openDataflowSilently(new T2FlowFileType(), dataflowUrl) .getDataflow(); URL componentProfileUrl = getClass().getClassLoader().getResource( "ValidationComponent.xml"); assertNotNull(componentProfileUrl); Profile componentProfile = ComponentUtil .makeProfile(componentProfileUrl); componentFamily = componentRegistry.createComponentFamily( "Test Component Family", componentProfile, "Some description", null, null); component = componentFamily.createComponentBasedOn("Test Component", "Some description", dataflow).getComponent(); }
@Before public void setUp() throws Exception { URL dataflowUrl = getClass().getClassLoader().getResource( "beanshell_test.t2flow"); assertNotNull(dataflowUrl); dataflow = FileManager.getInstance() .openDataflowSilently(new T2FlowFileType(), dataflowUrl) .getDataflow(); URL componentProfileUrl = getClass().getClassLoader().getResource( "ValidationComponent.xml"); assertNotNull(componentProfileUrl); Profile componentProfile = ComponentUtil .makeProfile(componentProfileUrl); componentFamily = componentRegistry.createComponentFamily( "Test Component Family", componentProfile, "Some description", null, null); component = componentFamily.createComponentBasedOn("Test Component", "Some description", dataflow).getComponent(); }
@Test public void testGetComponentFamilies() throws Exception { assertEquals(0, componentRegistry.getComponentFamilies().size()); assertEquals(0, componentRegistry.getComponentFamilies().size()); Family componentFamily = componentRegistry.createComponentFamily( "TestComponentFamily", componentProfile, "Some description", null, null); assertEquals(1, componentRegistry.getComponentFamilies().size()); assertTrue(componentRegistry.getComponentFamilies().contains( componentFamily)); componentRegistry.removeComponentFamily(componentFamily); assertEquals(0, componentRegistry.getComponentFamilies().size()); }
@Test public void testRemoveComponentFamily() throws Exception { assertEquals(0, componentRegistry.getComponentFamilies().size()); assertNull(componentRegistry.getComponentFamily("TestComponentFamily")); Family componentFamily = componentRegistry.createComponentFamily( "TestComponentFamily", componentProfile, "Some description", null, null); assertEquals(1, componentRegistry.getComponentFamilies().size()); assertNotNull(componentRegistry .getComponentFamily("TestComponentFamily")); assertEquals(componentFamily, componentRegistry.getComponentFamily("TestComponentFamily")); componentRegistry.removeComponentFamily(componentFamily); assertEquals(0, componentRegistry.getComponentFamilies().size()); assertNull(componentRegistry.getComponentFamily("TestComponentFamily")); }
@Test public void testRemoveComponentFamily() throws Exception { assertEquals(0, componentRegistry.getComponentFamilies().size()); assertNull(componentRegistry.getComponentFamily("TestComponentFamily")); Family componentFamily = componentRegistry.createComponentFamily( "TestComponentFamily", componentProfile, "Some description", null, null); assertEquals(1, componentRegistry.getComponentFamilies().size()); assertNotNull(componentRegistry .getComponentFamily("TestComponentFamily")); assertEquals(componentFamily, componentRegistry.getComponentFamily("TestComponentFamily")); componentRegistry.removeComponentFamily(componentFamily); assertEquals(0, componentRegistry.getComponentFamilies().size()); assertNull(componentRegistry.getComponentFamily("TestComponentFamily")); }
@Test public void testCreateComponentFamily() throws Exception { assertEquals(0, componentRegistry.getComponentFamilies().size()); assertNull(componentRegistry.getComponentFamily("TestComponentFamily")); Family componentFamily = componentRegistry.createComponentFamily( "TestComponentFamily", componentProfile, "Some description", null, null); assertEquals("TestComponentFamily", componentFamily.getName()); assertEquals(componentRegistry, componentFamily.getComponentRegistry()); assertEquals(0, componentFamily.getComponents().size()); // assertEquals(componentProfile, // componentFamily.getComponentProfile()); assertEquals(1, componentRegistry.getComponentFamilies().size()); assertNotNull(componentRegistry .getComponentFamily("TestComponentFamily")); assertEquals(componentFamily, componentRegistry.getComponentFamily("TestComponentFamily")); }
@Test public void testCreateComponentFamily() throws Exception { assertEquals(0, componentRegistry.getComponentFamilies().size()); assertNull(componentRegistry.getComponentFamily("TestComponentFamily")); Family componentFamily = componentRegistry.createComponentFamily( "TestComponentFamily", componentProfile, "Some description", null, null); assertEquals("TestComponentFamily", componentFamily.getName()); assertEquals(componentRegistry, componentFamily.getComponentRegistry()); assertEquals(0, componentFamily.getComponents().size()); // assertEquals(componentProfile, // componentFamily.getComponentProfile()); assertEquals(1, componentRegistry.getComponentFamilies().size()); assertNotNull(componentRegistry .getComponentFamily("TestComponentFamily")); assertEquals(componentFamily, componentRegistry.getComponentFamily("TestComponentFamily")); }
@Test public void testGetComponentFamily() throws Exception { assertNull(componentRegistry.getComponentFamily("TestComponentFamily")); assertNull(componentRegistry.getComponentFamily("TestComponentFamily")); Family componentFamily = componentRegistry.createComponentFamily( "TestComponentFamily", componentProfile, "Some description", null, null); assertNotNull(componentRegistry .getComponentFamily("TestComponentFamily")); assertNotNull(componentRegistry .getComponentFamily("TestComponentFamily")); assertEquals(componentFamily, componentRegistry.getComponentFamily("TestComponentFamily")); componentRegistry.removeComponentFamily(componentFamily); assertNull(componentRegistry.getComponentFamily("TestComponentFamily")); }
@Test public void testGetComponentFamily() throws Exception { assertNull(componentRegistry.getComponentFamily("TestComponentFamily")); assertNull(componentRegistry.getComponentFamily("TestComponentFamily")); Family componentFamily = componentRegistry.createComponentFamily( "TestComponentFamily", componentProfile, "Some description", null, null); assertNotNull(componentRegistry .getComponentFamily("TestComponentFamily")); assertNotNull(componentRegistry .getComponentFamily("TestComponentFamily")); assertEquals(componentFamily, componentRegistry.getComponentFamily("TestComponentFamily")); componentRegistry.removeComponentFamily(componentFamily); assertNull(componentRegistry.getComponentFamily("TestComponentFamily")); }