org.apache.maven.shared.utils.testhelpers
Class ExceptionHelper

java.lang.Object
  extended by org.apache.maven.shared.utils.testhelpers.ExceptionHelper

public class ExceptionHelper
extends Object


Constructor Summary
ExceptionHelper()
           
 
Method Summary
static org.hamcrest.Matcher<Throwable> hasCause(Class<? extends Throwable> cause)
          A matcher that verifies that the a root cause of an exception is of the specified type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExceptionHelper

public ExceptionHelper()
Method Detail

hasCause

public static org.hamcrest.Matcher<Throwable> hasCause(Class<? extends Throwable> cause)
A matcher that verifies that the a root cause of an exception is of the specified type.

Parameters:
cause - the type of exception that caused this.
Returns:
A matcher that verifies that the a root cause of an exception is of the specified type.


Copyright © 2002-2013 The Apache Software Foundation. All Rights Reserved.