Name

Protectable

Description

Protectable (see Figure B-4) is an interface used by TestResult to run test methods in a Throwable context.

The interface Protectable
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.

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.