public class TempFileAnnotationHandler extends TestListener
TempFile annotation.| Modifier and Type | Field and Description |
|---|---|
protected Boolean |
cleanupAfterTest |
protected TempService |
tempService |
| Constructor and Description |
|---|
TempFileAnnotationHandler(TempService tempService,
boolean cleanupAfterTest) |
| Modifier and Type | Method and Description |
|---|---|
void |
afterTestMethod(Object testObject,
Method testMethod,
Throwable t) |
void |
beforeTestSetUp(Object testObject,
Method testMethod) |
protected void |
createTempFileForField(Object testObject,
Method testMethod,
Field field) |
protected void |
deleteTempFileForField(Object testObject,
Field field) |
afterCreateTestObject, afterTestTearDown, beforeTestClass, beforeTestMethod, shouldInvokeTestMethodprotected Boolean cleanupAfterTest
protected TempService tempService
public TempFileAnnotationHandler(TempService tempService, boolean cleanupAfterTest)
public void beforeTestSetUp(Object testObject, Method testMethod)
beforeTestSetUp in class TestListenerpublic void afterTestMethod(Object testObject, Method testMethod, Throwable t)
afterTestMethod in class TestListenerprotected void createTempFileForField(Object testObject, Method testMethod, Field field)
Copyright © 2016. All Rights Reserved.