diff options
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); } } |