Name
Protectable
Description
Protectable
(see Figure B-4) is
an interface used by TestResult
to run test
methods in a Throwable
context.
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 namedprotect( )
that can throw aThrowable
.
Protected/Private Methods
None.
Attributes
None.
Get Unit Test Frameworks now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.