Example #1
0
  protected void testProperty(
      PropertyInfo property,
      String name,
      TypeInfo.Type type,
      String annotationName,
      List<String> annotationArgs) {
    assertEquals(name, property.getName());
    assertEquals(type, property.getTypeInfo().getType());
    assertEquals(1, property.getAnnotations().size());

    AnnotationInfo annotationInfo = property.getAnnotations().get(0);

    assertType(annotationInfo.getTypeInfo(), annotationName);
    assertEquals(annotationArgs, annotationInfo.getArgs());
  }
Example #2
0
 protected void testProperty(PropertyInfo property, String name, TypeInfo.Type type) {
   assertEquals(name, property.getName());
   assertEquals(type, property.getTypeInfo().getType());
   assertEquals(0, property.getAnnotations().size());
 }