Package org.jbehave.threaded.swing

Source Code of org.jbehave.threaded.swing.HeadlessChecker

package org.jbehave.threaded.swing;

import org.jbehave.core.exception.PendingException;

public class HeadlessChecker {

    public void check() {
        if ("true".equals(System.getProperty("java.awt.headless"))) {
            throw new PendingException("Cannot verify behaviour when performing in headless mode.");
        }
    }

}
TOP

Related Classes of org.jbehave.threaded.swing.HeadlessChecker

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.