Examples of AnnotatedDaoRuntimeInfo


Examples of org.milyn.scribe.reflection.AnnotatedDaoRuntimeInfo

    assertNull(minimumAnnotatedDaoRuntimeInfo.getLookupWithNamedParametersMethod("id"));
  }

  public void test_default_annotated_methods() {
    AnnotatedDaoRuntimeInfo runtimeInfo = new AnnotatedDaoRuntimeInfo(OnlyDefaultAnnotatedDao.class);

    assertNotNull(runtimeInfo.getDefaultInsertMethod());
    assertNotNull(runtimeInfo.getDefaultUpdateMethod());
    assertNotNull(runtimeInfo.getDefaultDeleteMethod());
  }
View Full Code Here

Examples of org.milyn.scribe.reflection.AnnotatedDaoRuntimeInfo

    assertNotNull(runtimeInfo.getDefaultDeleteMethod());
  }

  @Test(expectedExceptions = IllegalAnnotationUsageException.class)
  public void test_exception_on_same_named_insert_method() {
    new AnnotatedDaoRuntimeInfo(IncorrectInsertDao.class);
  }
View Full Code Here

Examples of org.milyn.scribe.reflection.AnnotatedDaoRuntimeInfo

    new AnnotatedDaoRuntimeInfo(IncorrectInsertDao.class);
  }

  @Test(expectedExceptions = IllegalAnnotationUsageException.class)
  public void test_exception_on_same_named_update_method() {
    new AnnotatedDaoRuntimeInfo(IncorrectUpdateDao.class);
  }
View Full Code Here

Examples of org.milyn.scribe.reflection.AnnotatedDaoRuntimeInfo

    new AnnotatedDaoRuntimeInfo(IncorrectUpdateDao.class);
  }

  @Test(expectedExceptions = IllegalAnnotationUsageException.class)
  public void test_exception_on_same_named_delete_method() {
    new AnnotatedDaoRuntimeInfo(IncorrectDeleteDao.class);
  }
View Full Code Here

Examples of org.milyn.scribe.reflection.AnnotatedDaoRuntimeInfo

    new AnnotatedDaoRuntimeInfo(IncorrectDeleteDao.class);
  }

  @Test(expectedExceptions = IllegalAnnotationUsageException.class)
  public void test_exception_on_same_named_locator_method() {
    new AnnotatedDaoRuntimeInfo(IncorrectLocatorDao.class);
  }
View Full Code Here

Examples of org.milyn.scribe.reflection.AnnotatedDaoRuntimeInfo


  public void test_create() {

    AnnotatedDaoRuntimeInfoFactory factory = new AnnotatedDaoRuntimeInfoFactory();
    AnnotatedDaoRuntimeInfo runtimeInfo = factory.create(FullAnnotatedDao.class);

    assertNotNull(runtimeInfo);

    AnnotatedDaoRuntimeInfo runtimeInfo2 = factory.create(FullAnnotatedDao.class);

    assertSame(runtimeInfo, runtimeInfo2);

    AnnotatedDaoRuntimeInfo runtimeInfo3 = factory.create(MinimumAnnotatedDao.class);

    assertNotSame(runtimeInfo, runtimeInfo3);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.