Package com.cedarsolutions.dao.gae

Examples of com.cedarsolutions.dao.gae.IDaoObjectifyService


        return entities;
    }

    /** Create a DAO for testing against the stubbed datastore. */
    private static StringIdEntityDao createStringIdEntityDao() {
        IDaoObjectifyService daoObjectifyService = getDaoObjectifyService();
        StringIdEntityDao dao = new StringIdEntityDao();
        dao.setDaoObjectifyService(daoObjectifyService);
        dao.afterPropertiesSet();
        return dao;
    }
View Full Code Here


        return dao;
    }

    /** Create a DAO for testing against the stubbed datastore. */
    private static IntegerIdEntityDao createIntegerIdEntityDao() {
        IDaoObjectifyService daoObjectifyService = getDaoObjectifyService();
        IntegerIdEntityDao dao = new IntegerIdEntityDao();
        dao.setDaoObjectifyService(daoObjectifyService);
        dao.afterPropertiesSet();
        return dao;
    }
View Full Code Here

       return DAO_OBJECTIFY_SERVICE;
   }

   /** Get a DaoObjectifyService that returns a mock ObjectifyProxy. */
   protected static IDaoObjectifyService getMockedDaoObjectifyService() {
       IDaoObjectifyService service = mock(IDaoObjectifyService.class);

       ObjectifyProxy proxy = mock(ObjectifyProxy.class);
       when(service.getObjectify()).thenReturn(proxy);
       when(service.getObjectifyWithTransaction()).thenReturn(proxy);

       return service;
   }
View Full Code Here

TOP

Related Classes of com.cedarsolutions.dao.gae.IDaoObjectifyService

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.