Package net.jsunit.action

Source Code of net.jsunit.action.BlockingTestRunner

package net.jsunit.action;

import net.jsunit.BrowserTestRunnerStub;
import net.jsunit.model.Browser;

import java.util.Arrays;
import java.util.List;

public class BlockingTestRunner extends BrowserTestRunnerStub {
    public boolean blocked;

    public void startTestRun() {
        blocked = true;
        while (blocked) {
            try {
                Thread.sleep(10);
            } catch (InterruptedException e) {
            }
        }
    }

    public List<Browser> getBrowsers() {
        return Arrays.asList(new Browser[]{new Browser("browser.exe", 0)});
    }

}
TOP

Related Classes of net.jsunit.action.BlockingTestRunner

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.