sourceComponent.getComponentVersionMap() .lastKey()); Version targetVersion = targetFamily.createComponentBasedOn(componentName, sourceComponent.getDescription(), sourceVersion.getDataflow());
OK_CANCEL_OPTION); if (answer == OK_OPTION) { newVersion = family.createComponentBasedOn( ident.getComponentName(), descriptionArea.getText(), 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); }
@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 testGetComponents() throws Exception { assertEquals(0, componentFamily.getComponents().size()); assertEquals(0, componentFamily.getComponents().size()); Version componentVersion = componentFamily.createComponentBasedOn( "Test Component", "Some description", dataflow); assertEquals(1, componentFamily.getComponents().size()); assertTrue(componentFamily.getComponents().contains( componentVersion.getComponent())); // componentFamily.removeComponent(componentVersion.getComponent()); // assertEquals(0, componentFamily.getComponents().size()); }
@Test public void testCreateComponentBasedOn() throws Exception { Version componentVersion = componentFamily.createComponentBasedOn( "Test Component", "Some description", dataflow); assertEquals("Test Component", componentVersion.getComponent() .getName()); }
@Test public void testGetComponents() throws Exception { assertEquals(0, componentFamily.getComponents().size()); assertEquals(0, componentFamily.getComponents().size()); Version componentVersion = componentFamily.createComponentBasedOn( "Test Component", "Some description", dataflow); assertEquals(1, componentFamily.getComponents().size()); assertTrue(componentFamily.getComponents().contains( componentVersion.getComponent())); // componentFamily.removeComponent(componentVersion.getComponent()); // assertEquals(0, componentFamily.getComponents().size()); }
@Test public void testCreateComponentBasedOn() throws Exception { Version componentVersion = componentFamily.createComponentBasedOn( "Test Component", "Some description", dataflow); assertEquals("Test Component", componentVersion.getComponent() .getName()); }
@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 testGetComponent() throws Exception { assertNull(componentFamily.getComponent("Test Component")); Version componentVersion = componentFamily.createComponentBasedOn( "Test Component", "Some description", dataflow); assertNotNull(componentFamily.getComponent("Test Component")); assertEquals(componentVersion.getComponent(), componentFamily.getComponent("Test Component")); }
@Test public void testGetComponent() throws Exception { assertNull(componentFamily.getComponent("Test Component")); Version componentVersion = componentFamily.createComponentBasedOn( "Test Component", "Some description", dataflow); assertNotNull(componentFamily.getComponent("Test Component")); assertEquals(componentVersion.getComponent(), componentFamily.getComponent("Test Component")); }