test/hotspot/jtreg/compiler/graalunit/com.oracle.mxtool.junit/com/oracle/mxtool/junit/TextRunListener.java
equal
deleted
inserted
replaced
72 public void testIgnored(Description description) { |
72 public void testIgnored(Description description) { |
73 getWriter().print('I'); |
73 getWriter().print('I'); |
74 } |
74 } |
75 |
75 |
76 public static RunListener createRunListener(MxRunListener l) { |
76 public static RunListener createRunListener(MxRunListener l) { |
77 return new TextListener(l.getWriter()) { |
77 PrintStream theWriter = l.getWriter(); |
|
78 return new TextListener(theWriter) { |
78 private Class<?> lastClass; |
79 private Class<?> lastClass; |
79 private int passedInLastClass; |
80 private int passedInLastClass; |
80 private int failedInLastClass; |
81 private int failedInLastClass; |
81 private boolean failed; |
82 private boolean failed; |
82 |
83 |
141 |
142 |
142 @Override |
143 @Override |
143 public void testAssumptionFailure(Failure failure) { |
144 public void testAssumptionFailure(Failure failure) { |
144 l.testAssumptionFailure(failure); |
145 l.testAssumptionFailure(failure); |
145 } |
146 } |
|
147 |
|
148 @Override |
|
149 protected void printFailure(Failure each, String prefix) { |
|
150 // Print out the test message in the same format used to run a single test: |
|
151 // my.package.MyClass#methodName |
|
152 String header = each.getDescription().getClassName() + "#" + each.getDescription().getMethodName(); |
|
153 theWriter.println(prefix + ") " + header); |
|
154 theWriter.print(each.getTrace()); |
|
155 } |
146 }; |
156 }; |
147 } |
157 } |
148 } |
158 } |