if (--running == 0) this.notify();
}
public void testParallelTransformation() throws Exception
{
final Transformer transformer = getTransformer();
long startTime = System.currentTimeMillis();
for (int i = 0; i < getParallelThreadCount(); ++i)
{
new Thread(new Runnable()
{
public void run()
{
try
{
RequestContext.setEvent(getTestEvent("test"));
}
catch (Exception e)
{
e.printStackTrace();
return;
}
signalStarted();
for (int j = 0; j < getCallsPerThread(); ++j)
{
try
{
actualResults.add(transformer.transform(srcData));
}
catch (TransformerException e)
{
actualResults.add(e);
}