Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorslewis2008-05-14 07:35:45 +0000
committerslewis2008-05-14 07:35:45 +0000
commit911b1247721313e424f4e114e8254a256a23059f (patch)
tree4e2faa5d540fed9f10a5c415ee160282f184471f
parent98d8161290ae7bc2b0197921eca891421e2b5a1a (diff)
downloadorg.eclipse.ecf-20080514-1115.tar.gz
org.eclipse.ecf-20080514-1115.tar.xz
org.eclipse.ecf-20080514-1115.zip
Added more test codev20080514-1115
-rwxr-xr-xtests/bundles/org.eclipse.ecf.tests.storage/src/org/eclipse/ecf/tests/securestorage/IDStoreTest.java4
1 files changed, 4 insertions, 0 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 73a131e6d..bdd378f3b 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
@@ -121,6 +121,7 @@ public class IDStoreTest extends TestCase {
}
public void testCreateAssociation() throws Exception {
+ // Create two GUIDs and store them in idStore
final ID guid1 = IDFactory.getDefault().createGUID();
final IIDEntry entry1 = idStore.getEntry(guid1);
final ID guid2 = IDFactory.getDefault().createGUID();
@@ -131,11 +132,14 @@ public class IDStoreTest extends TestCase {
// Get entry1a
final IIDEntry entry1a = idStore.getEntry(guid1);
+ assertNotNull(entry1a);
// Get associates (should include entry2)
final IIDEntry[] entries = entry1a.getAssociateIDEntries();
+ assertNotNull(entries);
assertTrue(entries.length == 1);
// entry2a should be same as entry2
final IIDEntry entry2a = entries[0];
+ assertNotNull(entry2a);
final ID guid2a = entry2a.createID();
// and guid2a should equal guid2
assertTrue(guid2.equals(guid2a));

Back to the top