Package com.github.jmkgreen.morphia.TestDatastore

Examples of com.github.jmkgreen.morphia.TestDatastore.KeysKeysKeys


        assertEquals(fbUser1.id, fbUserKeys.get(0).getId());
        assertEquals(fbUser2.id, fbUserKeys.get(1).getId());
        assertEquals(fbUser3.id, fbUserKeys.get(2).getId());
        assertEquals(fbUser4.id, fbUserKeys.get(3).getId());

        KeysKeysKeys k1 = new KeysKeysKeys(rectKey, fbUserKeys);
        Key<KeysKeysKeys> k1Key = ds.save(k1);
        assertEquals(k1.id, k1Key.getId());

        KeysKeysKeys k1Loaded = ds.get(k1);
        for(Key<FacebookUser> key :k1Loaded.users)
        {
            assertNotNull(key.getId());
        }
View Full Code Here


        assertEquals(fbUser1.id, fbUserKeys.get(0).getId());
        assertEquals(fbUser2.id, fbUserKeys.get(1).getId());
        assertEquals(fbUser3.id, fbUserKeys.get(2).getId());
        assertEquals(fbUser4.id, fbUserKeys.get(3).getId());

        KeysKeysKeys k1 = new KeysKeysKeys(null, fbUserKeys);
        Key<KeysKeysKeys> k1Key = ds.save(k1);
        assertEquals(k1.id, k1Key.getId());

        KeysKeysKeys k1Reloaded = ds.get(k1);
        KeysKeysKeys k1Loaded = ds.getByKey(KeysKeysKeys.class, k1Key);
        assertNotNull(k1Reloaded);
        assertNotNull(k1Loaded);
        for(Key<FacebookUser> key :k1Loaded.users)
        {
            assertNotNull(key.getId());
View Full Code Here

TOP

Related Classes of com.github.jmkgreen.morphia.TestDatastore.KeysKeysKeys

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.