The legacy-test directory contains part of the Android API and so must maintain backwards compatibility. The junit classes that are in the API are copied here to ensure that they do not change when external/junit is upgraded. Bug: 30188076 Test: make checkbuild and checked legacy-test contents Change-Id: I6c263afc16c06abfd027334be51a41422239a189
14 lines
257 B
Java
14 lines
257 B
Java
package junit.framework;
|
|
|
|
/**
|
|
* A <em>Protectable</em> can be run and can throw a Throwable.
|
|
*
|
|
* @see TestResult
|
|
*/
|
|
public interface Protectable {
|
|
|
|
/**
|
|
* Run the the following method protected.
|
|
*/
|
|
public abstract void protect() throws Throwable;
|
|
} |