Package org.mongolink.domain.mapper

Examples of org.mongolink.domain.mapper.ContextBuilder


    @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


public class MongolinkRule extends ExternalResource {

    public static MongolinkRule withPackage(String... packagesToScan) {
        MongolinkRule result = new MongolinkRule();
        ContextBuilder contextBuilder = new ContextBuilder(packagesToScan);
        sesionManager = MongoSessionManager.create(contextBuilder, Settings.defaultInstance().withDbFactory(FongoDbFactory.class));
        return result;
    }
View Full Code Here

import org.mongolink.domain.mapper.ContextBuilder;

public class ContextBuilderTestFactory {

    public ContextBuilder withFakeEntity() {
        return new ContextBuilder("org.mongolink.test.simpleMapping");
    }
View Full Code Here

TOP

Related Classes of org.mongolink.domain.mapper.ContextBuilder

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.