Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkwilk2011-05-26 19:58:30 -0400
committerRyan D. Brooks2011-05-26 19:58:30 -0400
commit0b9ac1724ba1fd18461f81a20e25905b01c534e7 (patch)
treec0e04cf5712b35b1f27b28e18afdb31e74de62bf /plugins/org.eclipse.osee.framework.skynet.core.test
parentba71851449778fb96bc585fae93fc8a061db3d16 (diff)
downloadorg.eclipse.osee-0b9ac1724ba1fd18461f81a20e25905b01c534e7.tar.gz
org.eclipse.osee-0b9ac1724ba1fd18461f81a20e25905b01c534e7.tar.xz
org.eclipse.osee-0b9ac1724ba1fd18461f81a20e25905b01c534e7.zip
bug: Fix to RelationCacheTest failure
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/relation/RelationCacheTest.java12
1 files changed, 11 insertions, 1 deletions
diff --git a/plugins/org.eclipse.osee.framework.skynet.core.test/src/org/eclipse/osee/framework/skynet/core/relation/RelationCacheTest.java b/plugins/org.eclipse.osee.framework.skynet.core.test/src/org/eclipse/osee/framework/skynet/core/relation/RelationCacheTest.java
index 6205cc0660..2ce27e9757 100644
--- a/plugins/org.eclipse.osee.framework.skynet.core.test/src/org/eclipse/osee/framework/skynet/core/relation/RelationCacheTest.java
+++ b/plugins/org.eclipse.osee.framework.skynet.core.test/src/org/eclipse/osee/framework/skynet/core/relation/RelationCacheTest.java
@@ -129,14 +129,24 @@ public class RelationCacheTest {
Assert.assertEquals(0, relCache.getAll(artfact2).size());
}
+ /**
+ * <p>
+ * When RelationCache.cache() is changed to throw an exception for a duplicate relation, <br/>
+ * then this test should fail and severeLoggingMonitor should not be paused.
+ * </p>
+ *
+ * @throws Exception
+ */
@Test
- public void testCanAddCacheSameRelTwice() {
+ public void testCanAddCacheSameRelTwice() throws Exception {
RelationCache relCache = new RelationCache();
RelationLink link1 = sourceLinksRelType1.iterator().next();
+ severeLoggingMonitor.pause();
relCache.cache(artfact1, link1);
relCache.cache(artfact1, link1);
+ severeLoggingMonitor.resume();
Assert.assertEquals(2, relCache.getAll(artfact1).size());
}

Back to the top