/**
* @throws Exception
* @tests java.lang.annotation.IncompleteAnnotationException#IncompleteAnnotationException(Class,
* String)
*/
@SuppressWarnings("nls")
public void test_constructorLjava_lang_Class_Ljava_lang_String()
throws Exception {
Class clazz = String.class;
String elementName = "some element";
IncompleteAnnotationException e = new IncompleteAnnotationException(
clazz, elementName);
assertNotNull("can not instantiate IncompleteAnnotationException", e);
assertSame("wrong annotation type", clazz, e.annotationType());
assertSame("wrong element name", elementName, e.elementName());
}
IncompleteAnnotationExceptionTest.java 文件源码
java
阅读 22
收藏 0
点赞 0
评论 0
项目:In-the-Box-Fork
作者:
评论列表
文章目录