diff options
author | Ryan D. Brooks | 2016-09-21 16:33:30 +0000 |
---|---|---|
committer | donald.g.dunne | 2016-09-21 16:33:30 +0000 |
commit | fbef1334d71b86630cdae4f83ca5c18b0c50d88f (patch) | |
tree | 1536040954cc7f4fc5b1c4fae28362e8a08abffb /plugins/org.eclipse.osee.client.integration.tests | |
parent | 59b7738863f84fad523e42b3083f762abbd93082 (diff) | |
download | org.eclipse.osee-fbef1334d71b86630cdae4f83ca5c18b0c50d88f.tar.gz org.eclipse.osee-fbef1334d71b86630cdae4f83ca5c18b0c50d88f.tar.xz org.eclipse.osee-fbef1334d71b86630cdae4f83ca5c18b0c50d88f.zip |
refactor: Remove IArtifact.getRelatedArtifacts
- One step closer to removing the interface IArtifact
Change-Id: I485071ecad70f4987b7dfa68f98cf380000e5bde
Diffstat (limited to 'plugins/org.eclipse.osee.client.integration.tests')
2 files changed, 7 insertions, 17 deletions
diff --git a/plugins/org.eclipse.osee.client.integration.tests/src/org/eclipse/osee/client/integration/tests/integration/skynet/core/RelationOrderingTest.java b/plugins/org.eclipse.osee.client.integration.tests/src/org/eclipse/osee/client/integration/tests/integration/skynet/core/RelationOrderingTest.java index 353a30468c8..a676c914aa0 100644 --- a/plugins/org.eclipse.osee.client.integration.tests/src/org/eclipse/osee/client/integration/tests/integration/skynet/core/RelationOrderingTest.java +++ b/plugins/org.eclipse.osee.client.integration.tests/src/org/eclipse/osee/client/integration/tests/integration/skynet/core/RelationOrderingTest.java @@ -11,6 +11,7 @@ package org.eclipse.osee.client.integration.tests.integration.skynet.core; import static org.eclipse.osee.client.demo.DemoChoice.OSEE_CLIENT_DEMO; +import static org.eclipse.osee.framework.core.enums.CoreArtifactTypes.Folder; import static org.eclipse.osee.framework.core.enums.RelationSorter.LEXICOGRAPHICAL_ASC; import static org.eclipse.osee.framework.core.enums.RelationSorter.LEXICOGRAPHICAL_DESC; import static org.junit.Assert.assertFalse; @@ -59,7 +60,7 @@ public class RelationOrderingTest { private static final BranchId branch = CoreBranches.COMMON; - private Set<Artifact> itemsToDelete; + private final Set<Artifact> itemsToDelete = new HashSet<>(); private Artifact parent; private Artifact child1; private Artifact child2; @@ -67,16 +68,14 @@ public class RelationOrderingTest { @Before public void setupArtifacts() throws Exception { - itemsToDelete = new HashSet<>(); - - parent = ArtifactTypeManager.addArtifact(CoreArtifactTypes.Folder, branch, "parent"); + parent = ArtifactTypeManager.addArtifact(Folder, branch, "parent"); addToCleanup(parent); - child1 = ArtifactTypeManager.addArtifact(CoreArtifactTypes.Folder, branch, "a_child"); + child1 = ArtifactTypeManager.addArtifact(Folder, branch, "a_child"); addToCleanup(child1); - child2 = ArtifactTypeManager.addArtifact(CoreArtifactTypes.Folder, branch, "b_child"); + child2 = ArtifactTypeManager.addArtifact(Folder, branch, "b_child"); addToCleanup(child2); - child3 = ArtifactTypeManager.addArtifact(CoreArtifactTypes.Folder, branch, "c_child"); + child3 = ArtifactTypeManager.addArtifact(Folder, branch, "c_child"); addToCleanup(child3); parent.addRelation(CoreRelationTypes.Default_Hierarchical__Child, child1); diff --git a/plugins/org.eclipse.osee.client.integration.tests/src/org/eclipse/osee/client/integration/tests/integration/skynet/core/utils/MockIArtifact.java b/plugins/org.eclipse.osee.client.integration.tests/src/org/eclipse/osee/client/integration/tests/integration/skynet/core/utils/MockIArtifact.java index ae56abf5f94..ecb3e8f5901 100644 --- a/plugins/org.eclipse.osee.client.integration.tests/src/org/eclipse/osee/client/integration/tests/integration/skynet/core/utils/MockIArtifact.java +++ b/plugins/org.eclipse.osee.client.integration.tests/src/org/eclipse/osee/client/integration/tests/integration/skynet/core/utils/MockIArtifact.java @@ -10,10 +10,7 @@ *******************************************************************************/ package org.eclipse.osee.client.integration.tests.integration.skynet.core.utils; -import java.util.Collections; -import java.util.List; import org.eclipse.osee.framework.core.data.BranchId; -import org.eclipse.osee.framework.core.data.RelationTypeSide; import org.eclipse.osee.framework.core.model.type.ArtifactType; import org.eclipse.osee.framework.jdk.core.type.NamedIdentity; import org.eclipse.osee.framework.skynet.core.artifact.Artifact; @@ -73,13 +70,7 @@ public class MockIArtifact extends NamedIdentity<String> implements IArtifact { } @Override - public List<? extends IArtifact> getRelatedArtifacts(RelationTypeSide relationTypeSide) { - return Collections.emptyList(); - } - - @Override public Long getId() { return new Long(uniqueId); } - -} +}
\ No newline at end of file |