Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorslewis2008-05-21 21:51:42 +0000
committerslewis2008-05-21 21:51:42 +0000
commit8ac39e8e89447000e6c036e352b6dbca161cef27 (patch)
tree9826f22285ff725fb37dbb42a8ec9d74bbe31e7c
parentbcf61302663852bfa924fbe560f44069e1d50528 (diff)
downloadorg.eclipse.ecf-8ac39e8e89447000e6c036e352b6dbca161cef27.tar.gz
org.eclipse.ecf-8ac39e8e89447000e6c036e352b6dbca161cef27.tar.xz
org.eclipse.ecf-8ac39e8e89447000e6c036e352b6dbca161cef27.zip
Added javadocs and fixed IDStore test case.
-rwxr-xr-xtests/bundles/org.eclipse.ecf.tests.storage/src/org/eclipse/ecf/tests/securestorage/IDStoreTest.java9
1 files changed, 4 insertions, 5 deletions
diff --git a/tests/bundles/org.eclipse.ecf.tests.storage/src/org/eclipse/ecf/tests/securestorage/IDStoreTest.java b/tests/bundles/org.eclipse.ecf.tests.storage/src/org/eclipse/ecf/tests/securestorage/IDStoreTest.java
index 0cb9efc01..13f2cf8d0 100755
--- a/tests/bundles/org.eclipse.ecf.tests.storage/src/org/eclipse/ecf/tests/securestorage/IDStoreTest.java
+++ b/tests/bundles/org.eclipse.ecf.tests.storage/src/org/eclipse/ecf/tests/securestorage/IDStoreTest.java
@@ -180,15 +180,14 @@ public class IDStoreTest extends TestCase {
final IIDEntry entry2a = entries1[0];
assertNotNull(entry2a);
final ID guid2a = entry2a.createID();
- // and guid2a should equal guid2
- assertTrue(guid2.equals(guid2a));
- // entry3a should be same as entry2
+ // entry3a should be same as entry3
final IIDEntry entry3a = entries1[1];
assertNotNull(entry3a);
final ID guid3a = entry3a.createID();
- // and guid3a should equal guid3
- assertTrue(guid3.equals(guid3a));
+
+ // Since the order can be turned around, 2a can equal 2 or 3
+ assertTrue((guid2.equals(guid2a) && guid3.equals(guid3a)) || (guid2.equals(guid3a) && guid3.equals(guid2a)));
final IIDEntry[] entries2 = entry1a.getAssociates(key2);
assertNotNull(entries2);

Back to the top