* @throws IOException
* @throws ExamConfigurationException
*/
private void addTestsToReactor(ExamReactor reactor, Class<?> testClass, Object testClassInstance)
throws IOException, ExamConfigurationException {
TestProbeBuilder probe = manager.createProbeBuilder(testClassInstance);
Iterator<Object[]> it = null;
int index = 0;
try {
it = allParameters().iterator();
}
// CHECKSTYLE:SKIP : JUnit API
catch (Throwable t) {
throw new ExamConfigurationException(t.getMessage());
}
while (it.hasNext()) {
parameters = it.next();
// probe.setAnchor( testClass );
for (FrameworkMethod s : super.getChildren()) {
// record the method -> adress matching
TestAddress address = probe.addTest(testClass, s.getMethod().getName(), index);
manager.storeTestMethod(address, s);
}
index++;
}
reactor.addProbe(probe);