521 |
|
// Java9+ test classes |
522 |
|
if (atLeastJava9()) { |
523 |
|
String[] java9TestClassNames = { |
524 |
+ |
"AtomicBoolean9Test", |
525 |
+ |
"AtomicInteger9Test", |
526 |
+ |
"AtomicIntegerArray9Test", |
527 |
+ |
"AtomicLong9Test", |
528 |
+ |
"AtomicLongArray9Test", |
529 |
+ |
"AtomicReference9Test", |
530 |
+ |
"AtomicReferenceArray9Test", |
531 |
|
"ExecutorCompletionService9Test", |
532 |
|
}; |
533 |
|
addNamedTestClasses(suite, java9TestClassNames); |
955 |
|
} |
956 |
|
} |
957 |
|
|
958 |
< |
/** Like Runnable, but with the freedom to throw anything */ |
958 |
> |
/** |
959 |
> |
* Like Runnable, but with the freedom to throw anything. |
960 |
> |
* junit folks had the same idea: |
961 |
> |
* http://junit.org/junit5/docs/snapshot/api/org/junit/gen5/api/Executable.html |
962 |
> |
*/ |
963 |
|
interface Action { public void run() throws Throwable; } |
964 |
|
|
965 |
|
/** |