Package org.milyn.scribe.invoker

Examples of org.milyn.scribe.invoker.DaoInvokerFactory


  ObjectStore objectStore;

  public void test_getInstance() {

    DaoInvokerFactory factory  = DaoInvokerFactory.getInstance();

    assertNotNull(factory);

    DaoInvokerFactory factory2  = DaoInvokerFactory.getInstance();

    assertSame(factory, factory2);

  }
View Full Code Here


  }

  public void test_create_with_dao_interface() {

    DaoInvokerFactory factory  = DaoInvokerFactory.getInstance();

    @SuppressWarnings("unchecked")
    Dao<Object> daoMock = mock(Dao.class);

    DaoInvoker daoInvoker = factory.create(daoMock, objectStore);

    assertNotNull(daoInvoker);

    Object entity = new Object();
View Full Code Here

  }

  public void test_create_with_mapping_dao_interface() {

    DaoInvokerFactory factory  = DaoInvokerFactory.getInstance();

    @SuppressWarnings("unchecked")
    MappingDao<Object> daoMock = mock(MappingDao.class);

    DaoInvoker daoInvoker = factory.create(daoMock, objectStore);

    assertNotNull(daoInvoker);

    Object entity = new Object();
View Full Code Here

  }

  public void test_create_with_annotated_dao() {

    DaoInvokerFactory factory  = DaoInvokerFactory.getInstance();

    FullAnnotatedDao daoMock = mock(FullAnnotatedDao.class);

    DaoInvoker daoInvoker = factory.create(daoMock, objectStore);

    assertNotNull(daoInvoker);

    Object entity = new Object();
View Full Code Here

TOP

Related Classes of org.milyn.scribe.invoker.DaoInvokerFactory

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.