return; chosenRegistry.addComponentProfile(newProfile, license, permission); } catch (MalformedURLException e) {
@Test(expected = RegistryException.class) public void testAddComponentProfileNullProfile() throws Exception { componentRegistry.addComponentProfile(null, null, null); }
@Test(expected = RegistryException.class) public void testAddComponentProfileNullProfile() throws Exception { componentRegistry.addComponentProfile(null, null, null); }
targetRegistry.addComponentProfile(sourceProfile, license, permission);
@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); }
@Test public void testAddComponentProfile() throws Exception { List<Profile> componentProfiles = componentRegistry .getComponentProfiles(); boolean contained = false; for (Profile p : componentProfiles) { if (p.getId().equals(componentProfile.getId())) { contained = true; } } assertFalse(contained); int componentProfileCount = componentProfiles.size(); componentRegistry.addComponentProfile(componentProfile, null, null); int newSize = componentRegistry.getComponentProfiles().size(); assertEquals(componentProfileCount + 1, newSize); }
@Test public void testAddComponentProfile() throws Exception { List<Profile> componentProfiles = componentRegistry .getComponentProfiles(); boolean contained = false; for (Profile p : componentProfiles) { if (p.getId().equals(componentProfile.getId())) { contained = true; } } assertFalse(contained); int componentProfileCount = componentProfiles.size(); componentRegistry.addComponentProfile(componentProfile, null, null); int newSize = componentRegistry.getComponentProfiles().size(); assertEquals(componentProfileCount + 1, newSize); }