|
|
@@ -118,20 +118,29 @@ public class QTesterSuite {
|
|
|
|
|
|
public void run(Counter counter, Supplier<?> supplier) throws RuntimeException {
|
|
|
try {
|
|
|
+ method.invoke(that, supp ? supplier : supplier.get());
|
|
|
printf(" - SUITE: %s [%d] %s.%s%n",
|
|
|
type.getName(),
|
|
|
counter.next(),
|
|
|
method.getDeclaringClass().getSimpleName(),
|
|
|
method.getName()
|
|
|
);
|
|
|
- method.invoke(that, supp ? supplier : supplier.get());
|
|
|
} catch (IllegalAccessException | IllegalArgumentException ex) {
|
|
|
throw QAssert.rethrow(ex);
|
|
|
} catch (InvocationTargetException ex) {
|
|
|
- if(ex.getTargetException() instanceof UnsupportedOperationException) {
|
|
|
+ if(ex.getTargetException() instanceof UnsupportedTestException) {
|
|
|
+ if( !((UnsupportedTestException)ex.getTargetException()).silent() ) {
|
|
|
+ printf(" - SUITE: %s [%d] %s.%s - IGNORED%n",
|
|
|
+ type.getName(),
|
|
|
+ counter.next(),
|
|
|
+ method.getDeclaringClass().getSimpleName(),
|
|
|
+ method.getName()
|
|
|
+ );
|
|
|
+ }
|
|
|
+ } else if(ex.getTargetException() instanceof UnsupportedOperationException) {
|
|
|
printf(" - SUITE: %s [%d] %s.%s - UNSUPPORTED%n",
|
|
|
type.getName(),
|
|
|
- counter.value,
|
|
|
+ counter.next(),
|
|
|
method.getDeclaringClass().getSimpleName(),
|
|
|
method.getName()
|
|
|
);
|