File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -35,14 +35,17 @@ public static void testMethods(String[] args) {
3535 @ SuppressWarnings ("unchecked" )
3636 public static void testSpecifiedMethod (String className ,String methodName ){
3737 try {
38- System .out .println ("======================================================================" );
39- System .out .println ("startting : className:" + className + " methodName :" + methodName + "()" );
38+ System .out .println ("========================= JavaUnite Test =============================" );
39+ System .out .println ("CLASS:" + className );
40+ System .out .println ("METHOD:" + methodName + "()" );
4041 System .out .println ("============================= OUTPUT =================================" );
4142 Class <?> clazz = Class .forName (className );
4243 Constructor <?> c = clazz .getDeclaredConstructor ();
4344 c .setAccessible (true );
45+ long startTime = System .currentTimeMillis ();
4446 clazz .getMethod (methodName ).invoke (c .newInstance ());
45- System .out .println ("============================= SUCCESS ================================" );
47+ long endTime = System .currentTimeMillis ();
48+ System .out .println ("================ SUCCESS: " + (endTime - startTime ) + "ms ======================" );
4649 }catch (Exception e ){
4750 System .out .println ("============================= FAILED ================================" );
4851 e .printStackTrace ();
You can’t perform that action at this time.
0 commit comments