org.junit
Class AssumptionViolatedException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by java.lang.RuntimeException
              extended by org.junit.internal.AssumptionViolatedException
                  extended by org.junit.AssumptionViolatedException
All Implemented Interfaces:
Serializable, SelfDescribing

public class AssumptionViolatedException
extends org.junit.internal.AssumptionViolatedException

An exception class used to implement assumptions (state in which a given test is meaningful and should or should not be executed). A test for which an assumption fails should not generate a test case failure.

See Also:
Assume, Serialized Form

Constructor Summary
AssumptionViolatedException(Object value, Matcher<?> matcher)
          An assumption exception with the given value (String or Throwable) and an additional failing Matcher.
AssumptionViolatedException(String assumption)
          An assumption exception with the given message only.
AssumptionViolatedException(String assumption, boolean valueMatcher, Object value, Matcher<?> matcher)
           
AssumptionViolatedException(String assumption, Object value, Matcher<?> matcher)
          An assumption exception with the given value (String or Throwable) and an additional failing Matcher.
AssumptionViolatedException(String assumption, Throwable t)
          An assumption exception with the given message and a cause.
 
Method Summary
 
Methods inherited from class org.junit.internal.AssumptionViolatedException
describeTo, getMessage
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AssumptionViolatedException

public AssumptionViolatedException(String assumption,
                                   boolean valueMatcher,
                                   Object value,
                                   Matcher<?> matcher)

AssumptionViolatedException

public AssumptionViolatedException(Object value,
                                   Matcher<?> matcher)
An assumption exception with the given value (String or Throwable) and an additional failing Matcher.


AssumptionViolatedException

public AssumptionViolatedException(String assumption,
                                   Object value,
                                   Matcher<?> matcher)
An assumption exception with the given value (String or Throwable) and an additional failing Matcher.


AssumptionViolatedException

public AssumptionViolatedException(String assumption)
An assumption exception with the given message only.


AssumptionViolatedException

public AssumptionViolatedException(String assumption,
                                   Throwable t)
An assumption exception with the given message and a cause.



Copyright © 2002–2014 JUnit. All rights reserved.