Package com.impetus.client.crud.entities

Examples of com.impetus.client.crud.entities.MongoToken


        assertOnTokenScroll();
    }

    private void assertOnTokenScroll()
    {
        MongoToken token1 = new MongoToken();
        token1.setId("MongoTokenId1");
        token1.setTokenName("tokenName1");
        MongoTokenClient client = new MongoTokenClient();
        client.setClientName("tokenClient1");
        client.setId("tokenClientId");
        token1.setClient(client);

        MongoToken token2 = new MongoToken();
        token2.setId("tokenId2");
        token2.setTokenName("tokenName2");
        token2.setClient(client);
        em.persist(token1);
        em.persist(token2);

        String queryWithoutClause = "Select t from MongoToken t";
        assertOnTokenScroll(queryWithoutClause, 2);
View Full Code Here


        int count = 0;
        Iterator<MongoToken> tokens = query.iterate();
        while (tokens.hasNext())
        {
            MongoToken token = tokens.next();
            Assert.assertNotNull(token);
            Assert.assertNotNull(token.getClient());
            Assert.assertEquals(2, token.getClient().getTokens().size());
            count++;
        }

        Assert.assertTrue(count > 0);
        Assert.assertTrue(count == expected);
View Full Code Here

TOP

Related Classes of com.impetus.client.crud.entities.MongoToken

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.