ExpectedJavascriptPromptException.java :  » Testing » jwebunit » net » sourceforge » jwebunit » exception » Java Open Source

Java Open Source » Testing » jwebunit 
jwebunit » net » sourceforge » jwebunit » exception » ExpectedJavascriptPromptException.java
/******************************************************************************
 * jWebUnit project (http://jwebunit.sourceforge.net)                         *
 * Distributed open-source, see full license under LICENCE.txt                *
 ******************************************************************************/
package net.sourceforge.jwebunit.exception;

import junit.framework.AssertionFailedError;

/**
 * A Javascript prompt was expected but was not thrown.
 * 
 * @author Julien Henry
 */
public class ExpectedJavascriptPromptException extends Exception {
    /**
     * Expected message in the prompt
     */
    private String message;

    public ExpectedJavascriptPromptException(String message) {
        super("A prompt was expected with message [" + message + "]");
        this.message = message;
    }

    /**
     * Return the expected message in the prompt
     */
    public String getPromptMessage() {
        return message;
    }
}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.