summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkwilk2012-06-05 16:59:06 (EDT)
committer Roberto E. Escobar2012-06-11 16:47:17 (EDT)
commitad7acf4f9acc001ff899c916164b434d89224ad6 (patch)
treef31408f50031a4a3447933e2349c43f17e246c59
parentf38d1c1a2ab46995b19893c93f6597750147df90 (diff)
downloadorg.eclipse.osee-ad7acf4f9acc001ff899c916164b434d89224ad6.zip
org.eclipse.osee-ad7acf4f9acc001ff899c916164b434d89224ad6.tar.gz
org.eclipse.osee-ad7acf4f9acc001ff899c916164b434d89224ad6.tar.bz2
bug[ats_D9J61]: Remove duplicate ReplaceAttributeWithTest
-rw-r--r--plugins/org.eclipse.osee.framework.skynet.core.test/src/org/eclipse/osee/framework/skynet/core/FrameworkCore_Demo_Suite.java2
-rw-r--r--plugins/org.eclipse.osee.framework.skynet.core.test/src/org/eclipse/osee/framework/skynet/core/artifact/ReplaceAttributeWithTest.java47
2 files changed, 0 insertions, 49 deletions
diff --git a/plugins/org.eclipse.osee.framework.skynet.core.test/src/org/eclipse/osee/framework/skynet/core/FrameworkCore_Demo_Suite.java b/plugins/org.eclipse.osee.framework.skynet.core.test/src/org/eclipse/osee/framework/skynet/core/FrameworkCore_Demo_Suite.java
index 6653e44..e21545f 100644
--- a/plugins/org.eclipse.osee.framework.skynet.core.test/src/org/eclipse/osee/framework/skynet/core/FrameworkCore_Demo_Suite.java
+++ b/plugins/org.eclipse.osee.framework.skynet.core.test/src/org/eclipse/osee/framework/skynet/core/FrameworkCore_Demo_Suite.java
@@ -28,7 +28,6 @@ import org.eclipse.osee.framework.skynet.core.artifact.PurgeArtifactsTest;
import org.eclipse.osee.framework.skynet.core.artifact.PurgeTransactionTest;
import org.eclipse.osee.framework.skynet.core.artifact.RelationDeletionTest;
import org.eclipse.osee.framework.skynet.core.artifact.RelationOrderingTest;
-import org.eclipse.osee.framework.skynet.core.artifact.ReplaceAttributeWithTest;
import org.eclipse.osee.framework.skynet.core.artifact.search.ArtifactLoaderTest;
import org.eclipse.osee.framework.skynet.core.artifact.search.ArtifactQueryTestDemo;
import org.eclipse.osee.framework.skynet.core.branch.BranchSuite;
@@ -64,7 +63,6 @@ import org.junit.runners.Suite;
FrameworkEventToRemoteEventListenerTest.class,
BranchSuite.class,
UserManagerTest.class,
- ReplaceAttributeWithTest.class,
AttributePurgeTest.class,
CrossBranchLinkTest.class,
UpdateBookmarkIdTest.class,
diff --git a/plugins/org.eclipse.osee.framework.skynet.core.test/src/org/eclipse/osee/framework/skynet/core/artifact/ReplaceAttributeWithTest.java b/plugins/org.eclipse.osee.framework.skynet.core.test/src/org/eclipse/osee/framework/skynet/core/artifact/ReplaceAttributeWithTest.java
deleted file mode 100644
index 3a77a65..0000000
--- a/plugins/org.eclipse.osee.framework.skynet.core.test/src/org/eclipse/osee/framework/skynet/core/artifact/ReplaceAttributeWithTest.java
+++ /dev/null
@@ -1,47 +0,0 @@
-/*******************************************************************************
- * Copyright (c) 2004, 2007 Boeing.
- * All rights reserved. This program and the accompanying materials
- * are made available under the terms of the Eclipse Public License v1.0
- * which accompanies this distribution, and is available at
- * http://www.eclipse.org/legal/epl-v10.html
- *
- * Contributors:
- * Boeing - initial API and implementation
- *******************************************************************************/
-
-package org.eclipse.osee.framework.skynet.core.artifact;
-
-import static org.junit.Assert.assertTrue;
-import java.util.Collections;
-import org.eclipse.osee.framework.core.enums.CoreArtifactTypes;
-import org.eclipse.osee.framework.core.enums.CoreAttributeTypes;
-import org.eclipse.osee.support.test.util.DemoSawBuilds;
-
-/**
- * @author Jeff C. Phillips
- */
-public class ReplaceAttributeWithTest {
-
- @org.junit.Test
- public void testReplaceAttributeVersion() throws Exception {
- Artifact artifact =
- ArtifactTypeManager.addArtifact(CoreArtifactTypes.GeneralDocument, DemoSawBuilds.SAW_Bld_1,
- getClass().getSimpleName());
- artifact.setAttributeValues(CoreAttributeTypes.Name, Collections.singletonList("Name"));
- artifact.persist("Replace attribute test");
-
- Attribute<?> nameAttribute = artifact.getAttributes(CoreAttributeTypes.Name).iterator().next();
- int previousGamma = nameAttribute.getGammaId();
- String previousName = nameAttribute.getDisplayableString();
-
- nameAttribute.setFromString("New Name");
- nameAttribute.getArtifact().persist("Replace attribute test");
-
- nameAttribute.replaceWithVersion(previousGamma);
- artifact.persist("Replace attribute test");
- artifact.reloadAttributesAndRelations();
-
- assertTrue(nameAttribute.getGammaId() == previousGamma);
- assertTrue(artifact.getAttributes(CoreAttributeTypes.Name).iterator().next().getValue().equals(previousName));
- }
-}