test.setIncludes(WrapUtil.toSet(String.format("**/%s*.class", singleTest)));
failIfNoTestIsExecuted(test, singleTest);
}
private void failIfNoTestIsExecuted(Test test, final String pattern) {
test.addTestListener(new TestListener() {
public void beforeSuite(TestDescriptor suite) {
// do nothing
}
public void afterSuite(TestDescriptor suite, TestResult result) {