JDK 9 RFR of JDK-8152936: java/lang/Class/GetPackageTest.java needs update to work with newer testng
Amy Lu
amy.lu at oracle.com
Thu Apr 21 06:00:35 UTC 2016
To get prepared for the coming testng updating in jtreg [1],
test/java/lang/Class/GetPackageTest.java needs a minor update as newer
version of testng requires explicit DataProvider's name (since 6.8.10).
Please review the patch. This works for both current jtreg (testng
6.8.5), and later testng 6.9.5
bug: https://bugs.openjdk.java.net/browse/JDK-8152936
webrev: http://cr.openjdk.java.net/~amlu/8152936/webrev.00/
Thanks,
Amy
[1]: http://mail.openjdk.java.net/pipermail/jtreg-use/2016-April/000450.html
--- old/test/java/lang/Class/GetPackageTest.java 2016-04-21 13:30:41.000000000 +0800
+++ new/test/java/lang/Class/GetPackageTest.java 2016-04-21 13:30:40.000000000 +0800
@@ -1,5 +1,5 @@
/**
- * Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
@@ -52,7 +52,7 @@
assertEquals(fooClass.getClassLoader(), loader);
}
- @DataProvider(name = "testclasses")
+ @DataProvider(name = "testClasses")
public Object[][] testClasses() {
return new Object[][] {
// primitive type, void, array types
More information about the core-libs-dev
mailing list