Package org.mongolink.domain.criteria

Examples of org.mongolink.domain.criteria.CriteriaFactory


    @Before
    public void before() {
        db = new Fongo("test").getDB("test");
        FakeAggregateWithSubclassMapping mapping = new FakeAggregateWithSubclassMapping();
        session = new MongoSessionImpl(db, new CriteriaFactory());
        MapperContext context = new MapperContext();
        mapping.buildMapper(context);
        session.setMappingContext(context);
        session.start();
    }
View Full Code Here


    @Before
    public void before() {
        final Fongo fongo = new Fongo("test");
        db = (FongoDB) spy(fongo.getDB("test"));
        ContextBuilder cb = new ContextBuilder("org.mongolink.test.simpleMapping");
        session = new MongoSessionImpl(db, new CriteriaFactory());
        session.setMappingContext(cb.createContext());
        session.start();
    }
View Full Code Here

        session.start();
    }

    @Test
    public void startAndStopASession() {
        MongoSessionImpl session = new MongoSessionImpl(db, new CriteriaFactory());

        session.start();
        session.stop();

        InOrder inorder = inOrder(db);
View Full Code Here

    }

    @Test
    public void ensureConnection() {
        final DB fakeDb = mock(DB.class);
        MongoSessionImpl session = new MongoSessionImpl(fakeDb, new CriteriaFactory());

        session.start();

        verify(fakeDb).requestEnsureConnection();
    }
View Full Code Here

TOP

Related Classes of org.mongolink.domain.criteria.CriteriaFactory

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.