Package org.apache.isis.objectstore.nosql.keys

Examples of org.apache.isis.objectstore.nosql.keys.KeyCreatorDefault


    protected NoSqlDataDatabase createNoSqlDatabase(final IsisConfiguration configuration) {
        NoSqlDataDatabase db;
        final String host = configuration.getString(DB_HOST, "localhost");
        final int port = configuration.getInteger(DB_PORT, 0);
        final String name = configuration.getString(DB_NAME, "isis");
        final KeyCreatorDefault keyCreator = new KeyCreatorDefault();
        db = new MongoDb(host, port, name, keyCreator);
        return db;
    }
View Full Code Here


            assumeThat(true, is(false)); // ignore if no MongoDB instance to
                                         // connect to
            return;
        }

        db = new MongoDb("localhost", 0, "testdb", new KeyCreatorDefault());
        db.open();

        adapter1 = iswf.adapterFor(iswf.fixtures.smpl1);
        specification = adapter1.getSpecification();
    }
View Full Code Here

    private KeyCreatorDefault keyCreatorDefault;

   
    @Before
    public void setUp() throws Exception {
        keyCreatorDefault = new KeyCreatorDefault() {
            @Override
            protected OidMarshaller getOidMarshaller() {
                return mockOidMarshaller;
            }
            @Override
View Full Code Here

   
    private KeyCreatorDefault keyCreatorDefault;

    @Before
    public void setup() {
        keyCreatorDefault = new KeyCreatorDefault();
       
        context.checking(new Expectations() {
            {
                allowing(adapter).getSpecification();
                will(returnValue(specification));
View Full Code Here

TOP

Related Classes of org.apache.isis.objectstore.nosql.keys.KeyCreatorDefault

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.