| java.lang.Object org.ow2.easybeans.tests.common.helper.ExceptionHelper
ExceptionHelper | final public class ExceptionHelper (Code) | | author: Eduardo Studzinski Estima de Castro author: Gisele Pinheiro Souza |
Method Summary | |
public static void | checkCause(Exception e, Class expected) Verifies if the cause of an exception is another exception. | public static boolean | isEquals(Exception e, Class expectedException) Verifies if two exceptions has the same class.
Parameters: e - the received exception. Parameters: expectedException - the expected exception. |
checkCause | public static void checkCause(Exception e, Class expected)(Code) | | Verifies if the cause of an exception is another exception.
Parameters: e - obtained exception Parameters: expected - expected exception as cause |
isEquals | public static boolean isEquals(Exception e, Class expectedException)(Code) | | Verifies if two exceptions has the same class.
Parameters: e - the received exception. Parameters: expectedException - the expected exception. true if are the same exception, false otherwise. |
|
|