jeudi 11 août 2016

how to print the classes specified in the @SuiteClasses using java reflection

Test.class

package a.b.c;
@RunWith(Suite.class)
@SuiteClasses({abc.class,bcd.class,cde.class})
public class Test{}

Load funtion

void load(){
Class.forName(a.b.c.Test);
//code
}

Now how do i print the classes specified within @Suite Classes? Is there any other way to do it? Thanks!





Aucun commentaire:

Enregistrer un commentaire