org.netbeans.jemmy
Class TestCompletedException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.netbeans.jemmy.JemmyException
                  extended by org.netbeans.jemmy.TestCompletedException
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
DemoInterruptedException

public class TestCompletedException
extends JemmyException

Exception is throught as a result of test. either test failed or passed.

Author:
Alexandre Iline (alexandre.iline@sun.com)
See Also:
Serialized Form

Constructor Summary
TestCompletedException(int st, java.lang.Exception ex)
          Constructor.
TestCompletedException(int st, java.lang.String description)
          Constructor.
 
Method Summary
 int getStatus()
          Returns status.
 
Methods inherited from class org.netbeans.jemmy.JemmyException
getInnerException, getInnerThrowable, getObject, printStackTrace, printStackTrace, printStackTrace
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TestCompletedException

public TestCompletedException(int st,
                              java.lang.Exception ex)
Constructor.

Parameters:
st - Exit status.
ex - Exception provoked test failure.

TestCompletedException

public TestCompletedException(int st,
                              java.lang.String description)
Constructor.

Parameters:
st - Exit status.
description - Failure reason
Method Detail

getStatus

public int getStatus()
Returns status.

Returns:
test status