Пример #1
0
 protected String displayName(Description desc) {
   String displayName = desc.getClassName().substring(desc.getClassName().lastIndexOf(".") + 1);
   if (desc.isTest()) {
     displayName += "." + desc.getMethodName();
   }
   return displayName;
 }
 private void dump(Description description) {
   final String methodName = description.getMethodName();
   System.out.println("***************************************************");
   System.out.println(" - isSuite: " + description.isSuite());
   System.out.println(" - isTest: " + description.isTest());
   System.out.println(" - annotations: " + description.getAnnotations());
   System.out.println(" - TestClass: " + description.getTestClass());
   System.out.println(" - class name: " + description.getClassName());
   System.out.println(" - method name: " + description.getMethodName());
   System.out.println("###################################################");
 }