< prev index next >
test/jdk/com/sun/tools/jextract/JextractToolProviderTest.java
Print this page
@@ -213,11 +213,12 @@
try {
Class<?> cls = loadClass("hello", helloJar);
// check NativeHeader annotation
NativeHeader header = cls.getAnnotation(NativeHeader.class);
assertNotNull(header);
- assertEquals(header.headerPath(), helloH.toString());
+ assertEquals(header.path(), helloH.toString());
+ assertFalse(header.declarations().isEmpty());
// check a method for "void func()"
assertNotNull(findMethod(cls, "func", Object[].class));
} finally {
deleteFile(helloJar);
@@ -232,11 +233,11 @@
try {
Class<?> cls = loadClass("com.acme.hello", helloJar);
// check NativeHeader annotation
NativeHeader header = cls.getAnnotation(NativeHeader.class);
assertNotNull(header);
- assertEquals(header.headerPath(), helloH.toString());
+ assertEquals(header.path(), helloH.toString());
// check a method for "void func()"
assertNotNull(findMethod(cls, "func", Object[].class));
} finally {
deleteFile(helloJar);
< prev index next >