AfterClassWithInfo
public
abstract
@interface
AfterClassWithInfo
implements
Annotation
| com.android.tradefed.testtype.junit4.AfterClassWithInfo |
Podobne gwarancje jak w przypadku AfterClass, ale metoda oznaczona adnotacją musi wymagać parametru TestInformation. Wykonuje metody AfterClass po wykonaniu metody AfterClass.
Za pomocą TestInformation.properties() możesz przekazywać informacje między kontekstem statycznym a niestatycznym.
Przykład:
@AfterClassWithInfo public static void afterClassWithInfo(TestInformation testInfo) { assertNotNull(device); }
Zobacz też: