org.springframework.roo.classpath.details.annotations.populator
Class AnnotationValuesTestCase<A,V extends AbstractAnnotationValues>

java.lang.Object
  extended by org.springframework.roo.classpath.details.annotations.populator.AnnotationValuesTestCase<A,V>
Type Parameters:
A - the annotation type
V - the annotation values class

public abstract class AnnotationValuesTestCase<A,V extends AbstractAnnotationValues>
extends Object

Convenience superclass for unit-testing subclasses of AbstractAnnotationValues

Since:
1.2.0
Author:
Andrew Swan

Constructor Summary
AnnotationValuesTestCase()
           
 
Method Summary
protected abstract  Class<A> getAnnotationClass()
          Subclasses must return the class of annotation whose value class is being tested
protected abstract  Class<V> getValuesClass()
          Subclasses must return the values class being tested
 void testAllAnnotationAttributesHaveAValueField()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AnnotationValuesTestCase

public AnnotationValuesTestCase()
Method Detail

getAnnotationClass

protected abstract Class<A> getAnnotationClass()
Subclasses must return the class of annotation whose value class is being tested

Returns:
a non-null annotation type

getValuesClass

protected abstract Class<V> getValuesClass()
Subclasses must return the values class being tested

Returns:
a non-null class

testAllAnnotationAttributesHaveAValueField

public void testAllAnnotationAttributesHaveAValueField()


Copyright © 2009–2015. All rights reserved.