UIWorker-1
, UIWorker-2
, etc.)RegexWorkerThreadMonitor
with the regular expression, and supply it to
a FrankensteinIntegration
instance
import com.thoughtworks.frankenstein.application.FrankensteinIntegration;
import com.thoughtworks.frankenstein.application.RegexWorkerThreadMonitor;
/**
* Launches the application under test via Frankenstein.
*/
public class FrankensteinLauncher {
public static void main(String[] args) {
FrankensteinIntegration integration = new FrankensteinIntegration(YouMainClass.class, new RegexWorkerThreadMonitor("UIWorker"));
integration.start(args);
}
}
WorkerThreadMonitor
interface.
package com.thoughtworks.frankenstein.application; /** * Monitor worker thread activity. */ public interface WorkerThreadMonitor { /** * Called at the start of a test run. */ public void start(); /** * Blocking call, that returns after worker thread activity ceases. */ public void waitForIdle(); }