RFR (S) 9 and 8u: JDK-8038994: AnnotatedType.getType() of a TypeVariable boundary without annotations return null
Joel Borggren-Franck
joel.franck at oracle.com
Fri May 16 08:53:09 UTC 2014
On 2014-05-15, Paul Sandoz wrote:
>
> The non test code looks good to me:
>
> Not totally sure about the test approach:
>
> 48 @Test(dataProvider = "data")
> 49 public void testClass(Class<?> c, String method) throws Exception {
> 50 if (c.getTypeParameters().length == 0)
> 51 return;
>
> 60 @Test(dataProvider = "data")
> 61 public void testMethod(Class<?>c, String method) throws Exception {
> 62 if ("".equals(method))
> 63 return;
>
> That's gonna produce redundant results in test reports for stuff that is filtered out by the test method.
>
> Perhaps split the data provider into two, one for classes and one for methods, and replace the if statements with asserts?
>
You are right, thanks for the suggestion. New webrev:
http://cr.openjdk.java.net/~jfranck/8038994/webrev.01/
cheers
/Joel
More information about the core-libs-dev
mailing list