Protectable

   
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
figs/utf_ab04.gif

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.



Unit Test Frameworks
Unit Test Frameworks
ISBN: 0596006896
EAN: 2147483647
Year: 2006
Pages: 146
Authors: Paul Hamill

Similar book on Amazon

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net