public class DeleteAfterTestRunMethodTestRule extends MethodTestRule<Void>
Modifier and Type | Class and Description |
---|---|
protected static class |
DeleteAfterTestRunMethodTestRule.FieldBag |
Modifier and Type | Field and Description |
---|---|
static DeleteAfterTestRunMethodTestRule |
INSTANCE |
Modifier and Type | Method and Description |
---|---|
protected void |
addField(Map<Class<?>,DeleteAfterTestRunMethodTestRule.FieldBag> deleteAfterTestRunFieldBags,
Class<?> clazz,
Field field) |
void |
afterMethod(org.junit.runner.Description description,
Void v,
Object target) |
protected Void |
beforeMethod(org.junit.runner.Description description,
Object target) |
protected Class<? extends com.liferay.portal.kernel.model.PersistedModel> |
getCollectionType(Collection<?> collection) |
protected void |
removeField(DeleteAfterTestRunMethodTestRule.FieldBag fieldBag,
Object instance) |
afterClass, beforeClass, createClassStatement
apply, createMethodStatement
public static final DeleteAfterTestRunMethodTestRule INSTANCE
public void afterMethod(org.junit.runner.Description description, Void v, Object target) throws Exception
afterMethod
in class AbstractTestRule<Void,Void>
Exception
protected void addField(Map<Class<?>,DeleteAfterTestRunMethodTestRule.FieldBag> deleteAfterTestRunFieldBags, Class<?> clazz, Field field)
protected Void beforeMethod(org.junit.runner.Description description, Object target)
beforeMethod
in class AbstractTestRule<Void,Void>
protected Class<? extends com.liferay.portal.kernel.model.PersistedModel> getCollectionType(Collection<?> collection)
protected void removeField(DeleteAfterTestRunMethodTestRule.FieldBag fieldBag, Object instance) throws Exception
Exception