Package org.milyn.scribe.reflection

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


    assertNotNull(runtimeInfo.getDefaultDeleteMethod());
  }

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

    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

    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

    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


  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

Related Classes of org.milyn.scribe.reflection.AnnotatedDaoRuntimeInfo

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.