Unit Test Frameworks
Protectable |
Description
Protectable (see Figure B-4) is an interface used by TestResult to run test methods in a Throwable context.
Figure B-4. The interface Protectable
Declaration
public interface Protectable
Constructors
None (it's an interface).
Public Methods
-
- public abstract void protect( ) throws Throwable
-
A class implementing Protectable has a public method named protect( ) that can throw a Throwable .
Protected/Private Methods
None.
Attributes
None.