public class

ExpectException

extends Statement
java.lang.Object
   ↳ org.junit.runners.model.Statement
     ↳ org.junit.internal.runners.statements.ExpectException

Summary

Public Constructors
ExpectException(Statement next, Class<? extends Throwable> expected)
Public Methods
void evaluate()
Run the action, throwing a Throwable if anything goes wrong.
[Expand]
Inherited Methods
From class org.junit.runners.model.Statement
From class java.lang.Object

Public Constructors

public ExpectException (Statement next, Class<? extends Throwable> expected)

Public Methods

public void evaluate ()

Run the action, throwing a Throwable if anything goes wrong.

Throws
Exception