Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorddunne2010-05-07 17:13:01 +0000
committerddunne2010-05-07 17:13:01 +0000
commit04d8934f735465a8fb488448126549a24b61ee36 (patch)
treefbc85d343b74b374e92f8866f2784f1246770799
parentd582fc120cac508b2808272d366052de13c06c90 (diff)
downloadorg.eclipse.osee-04d8934f735465a8fb488448126549a24b61ee36.tar.gz
org.eclipse.osee-04d8934f735465a8fb488448126549a24b61ee36.tar.xz
org.eclipse.osee-04d8934f735465a8fb488448126549a24b61ee36.zip
fixed class cast when setting attribute subsystem
-rw-r--r--plugins/org.eclipse.osee.framework.skynet.core.test/src/org/eclipse/osee/framework/skynet/core/test/util/FrameworkTestUtil.java14
1 files changed, 1 insertions, 13 deletions
diff --git a/plugins/org.eclipse.osee.framework.skynet.core.test/src/org/eclipse/osee/framework/skynet/core/test/util/FrameworkTestUtil.java b/plugins/org.eclipse.osee.framework.skynet.core.test/src/org/eclipse/osee/framework/skynet/core/test/util/FrameworkTestUtil.java
index 58e7f6d4cd1..1ef21ddfa34 100644
--- a/plugins/org.eclipse.osee.framework.skynet.core.test/src/org/eclipse/osee/framework/skynet/core/test/util/FrameworkTestUtil.java
+++ b/plugins/org.eclipse.osee.framework.skynet.core.test/src/org/eclipse/osee/framework/skynet/core/test/util/FrameworkTestUtil.java
@@ -43,17 +43,11 @@ public class FrameworkTestUtil {
/**
* Creates a simple artifact and adds it to the root artifact default hierarchical relation
- *
- * @param artifactTypeName
- * @param name
- * @param branch
- * @throws OseeCoreException
- * @throws Exception
*/
public static Artifact createSimpleArtifact(IArtifactType artifactType, String name, Branch branch) throws OseeCoreException {
Artifact softArt = ArtifactTypeManager.addArtifact(artifactType, branch);
softArt.setName(name);
- softArt.addAttribute("Subsystem", DemoSubsystems.Electrical);
+ softArt.addAttribute("Subsystem", DemoSubsystems.Electrical.name());
Artifact rootArtifact = OseeSystemArtifacts.getDefaultHierarchyRootArtifact(branch);
rootArtifact.addRelation(CoreRelationTypes.Default_Hierarchical__Child, softArt);
return softArt;
@@ -94,9 +88,6 @@ public class FrameworkTestUtil {
/**
* Deletes all artifacts with names that start with any title given
- *
- * @param titles
- * @throws Exception
*/
public static void cleanupSimpleTest(Branch branch, Collection<String> titles) throws Exception {
List<Artifact> artifacts = new ArrayList<Artifact>();
@@ -109,9 +100,6 @@ public class FrameworkTestUtil {
/**
* Deletes any artifact with name that starts with title
- *
- * @param title
- * @throws Exception
*/
public static void cleanupSimpleTest(Branch branch, String title) throws Exception {
cleanupSimpleTest(branch, Arrays.asList(title));

Back to the top