Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordonald.g.dunne2012-10-30 15:35:36 +0000
committerRoberto E. Escobar2012-10-30 15:35:36 +0000
commitcf3f517946b578b65db752217f9ef0adcfa37ff1 (patch)
tree32b47ce660f70a1df3be033947dd2f2e4dfde16d /plugins/org.eclipse.osee.framework.skynet.core.test
parent3d91127f916dcc7d6c6d51805765db56e42be2fe (diff)
downloadorg.eclipse.osee-cf3f517946b578b65db752217f9ef0adcfa37ff1.tar.gz
org.eclipse.osee-cf3f517946b578b65db752217f9ef0adcfa37ff1.tar.xz
org.eclipse.osee-cf3f517946b578b65db752217f9ef0adcfa37ff1.zip
refinement: Improve BranchEventTest.testEvents__purged to not log exception
Diffstat (limited to 'plugins/org.eclipse.osee.framework.skynet.core.test')
-rw-r--r--plugins/org.eclipse.osee.framework.skynet.core.test/src/org/eclipse/osee/framework/skynet/core/event/model/BranchEventTest.java8
1 files changed, 1 insertions, 7 deletions
diff --git a/plugins/org.eclipse.osee.framework.skynet.core.test/src/org/eclipse/osee/framework/skynet/core/event/model/BranchEventTest.java b/plugins/org.eclipse.osee.framework.skynet.core.test/src/org/eclipse/osee/framework/skynet/core/event/model/BranchEventTest.java
index ea60493c97a..aeb7e3f2315 100644
--- a/plugins/org.eclipse.osee.framework.skynet.core.test/src/org/eclipse/osee/framework/skynet/core/event/model/BranchEventTest.java
+++ b/plugins/org.eclipse.osee.framework.skynet.core.test/src/org/eclipse/osee/framework/skynet/core/event/model/BranchEventTest.java
@@ -21,7 +21,6 @@ import org.eclipse.osee.framework.core.enums.BranchState;
import org.eclipse.osee.framework.core.enums.BranchType;
import org.eclipse.osee.framework.core.enums.CoreArtifactTypes;
import org.eclipse.osee.framework.core.enums.StorageState;
-import org.eclipse.osee.framework.core.exception.BranchDoesNotExist;
import org.eclipse.osee.framework.core.exception.OseeCoreException;
import org.eclipse.osee.framework.core.model.Branch;
import org.eclipse.osee.framework.core.operation.Operations;
@@ -175,12 +174,7 @@ public class BranchEventTest {
Assert.assertEquals(BranchState.CREATED, workingBranch.getBranchState());
Assert.assertEquals(StorageState.PURGED, workingBranch.getStorageState());
Assert.assertFalse(workingBranch.isEditable());
- try {
- BranchManager.getBranchByGuid(guid);
- Assert.fail("Branch should not exist");
- } catch (BranchDoesNotExist ex) {
- // do nothing
- }
+ Assert.assertFalse("Branch should not exist", BranchManager.branchExists(guid));
return workingBranch;
}

Back to the top