}
}
private TestDescriptorInternal convertForError(Test test) {
if (test instanceof TestSetup) {
TestSetup testSetup = (TestSetup) test;
return new DefaultTestDescriptor(idGenerator.generateId(), testSetup.getClass().getName(), "classMethod");
}
assert test instanceof TestSuite : String.format("Should be TestSuite, is " + test.getClass());
TestSuite suite = (TestSuite) test;
return new DefaultTestMethodDescriptor(idGenerator.generateId(), suite.getName(), "classMethod");
}