diff options
author | rescobar | 2011-04-19 21:35:22 +0000 |
---|---|---|
committer | Ryan D. Brooks | 2011-04-19 21:35:22 +0000 |
commit | 026a9005c44a18f7b3eb68199b5bc7a517eeae03 (patch) | |
tree | 4057ed9bf8b20d801a1c92db712351eff035ab37 /plugins/org.eclipse.osee.framework.skynet.core.test | |
parent | 0506c439cef8015ec648b71123a1f3f6e8e16de0 (diff) | |
download | org.eclipse.osee-026a9005c44a18f7b3eb68199b5bc7a517eeae03.tar.gz org.eclipse.osee-026a9005c44a18f7b3eb68199b5bc7a517eeae03.tar.xz org.eclipse.osee-026a9005c44a18f7b3eb68199b5bc7a517eeae03.zip |
refactor: Remove ArtifactProcessor
Remove ArtifactProcessor interface from ArtifactFactory
Clean up ArtifactTypeManager.addArtifact API
Diffstat (limited to 'plugins/org.eclipse.osee.framework.skynet.core.test')
3 files changed, 5 insertions, 9 deletions
diff --git a/plugins/org.eclipse.osee.framework.skynet.core.test/src/org/eclipse/osee/framework/skynet/core/artifact/ArtifactTest.java b/plugins/org.eclipse.osee.framework.skynet.core.test/src/org/eclipse/osee/framework/skynet/core/artifact/ArtifactTest.java index 97228feb9ea..deb54da9031 100644 --- a/plugins/org.eclipse.osee.framework.skynet.core.test/src/org/eclipse/osee/framework/skynet/core/artifact/ArtifactTest.java +++ b/plugins/org.eclipse.osee.framework.skynet.core.test/src/org/eclipse/osee/framework/skynet/core/artifact/ArtifactTest.java @@ -42,7 +42,7 @@ public final class ArtifactTest { @Test public void attributeCopyAcrossRelatedBranches() throws Exception { Artifact artifactWithSpecialAttr = - ArtifactTypeManager.makeNewArtifact(DemoArtifactTypes.DemoCodeTeamWorkflow, DemoSawBuilds.SAW_Bld_1); + ArtifactTypeManager.addArtifact(DemoArtifactTypes.DemoCodeTeamWorkflow, DemoSawBuilds.SAW_Bld_1); artifactWithSpecialAttr.setSoleAttributeValue(CoreAttributeTypes.Partition, "Navigation"); artifactWithSpecialAttr.setName("ArtifactTest-artifactWithSpecialAttr"); @@ -54,7 +54,7 @@ public final class ArtifactTest { @Test public void attributeCopyAcrossUnrelatedBranches() throws Exception { Artifact artifactWithSpecialAttr = - ArtifactTypeManager.makeNewArtifact(DemoArtifactTypes.DemoCodeTeamWorkflow, DemoSawBuilds.SAW_Bld_1); + ArtifactTypeManager.addArtifact(DemoArtifactTypes.DemoCodeTeamWorkflow, DemoSawBuilds.SAW_Bld_1); artifactWithSpecialAttr.setSoleAttributeValue(CoreAttributeTypes.Partition, "Navigation"); artifactWithSpecialAttr.setName("ArtifactTest-artifactWithSpecialAttr"); @@ -66,7 +66,7 @@ public final class ArtifactTest { @Test(expected = OseeArgumentException.class) public void setSoleAttributeValueTest() throws Exception { Artifact artifactWithSpecialAttr = - ArtifactTypeManager.makeNewArtifact(DemoArtifactTypes.DemoCodeTeamWorkflow, CoreBranches.COMMON); + ArtifactTypeManager.addArtifact(DemoArtifactTypes.DemoCodeTeamWorkflow, CoreBranches.COMMON); artifactWithSpecialAttr.setSoleAttributeValue(CoreAttributeTypes.Partition, "Navigation"); } diff --git a/plugins/org.eclipse.osee.framework.skynet.core.test/src/org/eclipse/osee/framework/skynet/core/artifact/RelationDeletionTest.java b/plugins/org.eclipse.osee.framework.skynet.core.test/src/org/eclipse/osee/framework/skynet/core/artifact/RelationDeletionTest.java index 45422f9a666..1836336743b 100644 --- a/plugins/org.eclipse.osee.framework.skynet.core.test/src/org/eclipse/osee/framework/skynet/core/artifact/RelationDeletionTest.java +++ b/plugins/org.eclipse.osee.framework.skynet.core.test/src/org/eclipse/osee/framework/skynet/core/artifact/RelationDeletionTest.java @@ -12,9 +12,7 @@ package org.eclipse.osee.framework.skynet.core.artifact; import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertTrue; - import java.util.List; - import org.eclipse.osee.framework.core.client.ClientSessionManager; import org.eclipse.osee.framework.core.data.IArtifactType; import org.eclipse.osee.framework.core.enums.CoreArtifactTypes; @@ -74,6 +72,6 @@ public class RelationDeletionTest { } private Artifact createArtifact(IArtifactType artifactType, Branch branch) throws OseeCoreException { - return ArtifactTypeManager.makeNewArtifact(artifactType, branch); + return ArtifactTypeManager.addArtifact(artifactType, branch); } } diff --git a/plugins/org.eclipse.osee.framework.skynet.core.test/src/org/eclipse/osee/framework/skynet/core/artifact/RelationOrderingTest.java b/plugins/org.eclipse.osee.framework.skynet.core.test/src/org/eclipse/osee/framework/skynet/core/artifact/RelationOrderingTest.java index c3a299b245e..72fd3cc7e62 100644 --- a/plugins/org.eclipse.osee.framework.skynet.core.test/src/org/eclipse/osee/framework/skynet/core/artifact/RelationOrderingTest.java +++ b/plugins/org.eclipse.osee.framework.skynet.core.test/src/org/eclipse/osee/framework/skynet/core/artifact/RelationOrderingTest.java @@ -12,11 +12,9 @@ package org.eclipse.osee.framework.skynet.core.artifact; import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertTrue; - import java.util.ArrayList; import java.util.List; import java.util.Set; - import org.eclipse.osee.framework.core.data.IArtifactType; import org.eclipse.osee.framework.core.enums.CoreArtifactTypes; import org.eclipse.osee.framework.core.enums.CoreAttributeTypes; @@ -220,6 +218,6 @@ public class RelationOrderingTest { } private Artifact createArtifact(IArtifactType artifactType, Branch branch) throws OseeCoreException { - return ArtifactTypeManager.makeNewArtifact(artifactType, branch); + return ArtifactTypeManager.addArtifact(artifactType, branch); } } |