|
@@ -135,25 +135,23 @@ public class QTesterSuite {
|
|
|
} catch (IllegalAccessException | IllegalArgumentException ex) {
|
|
} catch (IllegalAccessException | IllegalArgumentException ex) {
|
|
|
throw QAssert.rethrow(ex);
|
|
throw QAssert.rethrow(ex);
|
|
|
} catch (InvocationTargetException ex) {
|
|
} catch (InvocationTargetException ex) {
|
|
|
- if(ex.getTargetException() instanceof UnsupportedTestException) {
|
|
|
|
|
- if( !((UnsupportedTestException)ex.getTargetException()).silent() ) {
|
|
|
|
|
- printf(" - SUITE: %s [%d] %s.%s - IGNORED%n",
|
|
|
|
|
|
|
+ if(ex.getTargetException() instanceof UnsupportedOperationException) {
|
|
|
|
|
+ if(debug) {
|
|
|
|
|
+ ex.printStackTrace();
|
|
|
|
|
+ }
|
|
|
|
|
+ UnsupportedOperationException uoe = (UnsupportedOperationException)ex.getTargetException();
|
|
|
|
|
+
|
|
|
|
|
+ if( !"TEST.SILENT".equals(uoe.getMessage())) {
|
|
|
|
|
+ String comment = "TEST.IGNORE".equals(uoe.getMessage()) ? "IGNORED" : "UNSUPPORTED";
|
|
|
|
|
+ printf(" - SUITE: %s [%d] %s.%s - %s%n",
|
|
|
type.getName(),
|
|
type.getName(),
|
|
|
counter.next(),
|
|
counter.next(),
|
|
|
method.getDeclaringClass().getSimpleName(),
|
|
method.getDeclaringClass().getSimpleName(),
|
|
|
- method.getName()
|
|
|
|
|
|
|
+ method.getName(),
|
|
|
|
|
+ comment
|
|
|
);
|
|
);
|
|
|
}
|
|
}
|
|
|
- } else if(ex.getTargetException() instanceof UnsupportedOperationException) {
|
|
|
|
|
- if(debug) {
|
|
|
|
|
- ex.printStackTrace();
|
|
|
|
|
- }
|
|
|
|
|
- printf(" - SUITE: %s [%d] %s.%s - UNSUPPORTED%n",
|
|
|
|
|
- type.getName(),
|
|
|
|
|
- counter.next(),
|
|
|
|
|
- method.getDeclaringClass().getSimpleName(),
|
|
|
|
|
- method.getName()
|
|
|
|
|
- );
|
|
|
|
|
|
|
+
|
|
|
} else {
|
|
} else {
|
|
|
throw QAssert.rethrow(ex.getTargetException());
|
|
throw QAssert.rethrow(ex.getTargetException());
|
|
|
}
|
|
}
|