Class DeleteAfterTestRunMethodTestRule
Object
com.liferay.portal.kernel.test.rule.AbstractTestRule<Void,M>
com.liferay.portal.kernel.test.rule.MethodTestRule<Void>
com.liferay.portal.kernel.test.rule.DeleteAfterTestRunMethodTestRule
- All Implemented Interfaces:
org.junit.rules.TestRule
- Author:
- Shuyang Zhou
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static class -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddField(Map<Class<?>, DeleteAfterTestRunMethodTestRule.FieldBag> deleteAfterTestRunFieldBags, Class<?> clazz, Field field) voidafterMethod(org.junit.runner.Description description, Void v, Object target) protected VoidbeforeMethod(org.junit.runner.Description description, Object target) protected Class<? extends com.liferay.portal.kernel.model.PersistedModel>getCollectionType(Collection<?> collection) protected voidremoveField(DeleteAfterTestRunMethodTestRule.FieldBag fieldBag, Object instance) Methods inherited from class com.liferay.portal.kernel.test.rule.MethodTestRule
afterClass, beforeClass, createClassStatementMethods inherited from class com.liferay.portal.kernel.test.rule.AbstractTestRule
apply, createMethodStatement
-
Field Details
-
INSTANCE
-
-
Method Details
-
afterMethod
public void afterMethod(org.junit.runner.Description description, Void v, Object target) throws Exception - Specified by:
afterMethodin classAbstractTestRule<Void,Void> - Throws:
Exception
-
addField
protected void addField(Map<Class<?>, DeleteAfterTestRunMethodTestRule.FieldBag> deleteAfterTestRunFieldBags, Class<?> clazz, Field field) -
beforeMethod
- Specified by:
beforeMethodin classAbstractTestRule<Void,Void>
-
getCollectionType
protected Class<? extends com.liferay.portal.kernel.model.PersistedModel> getCollectionType(Collection<?> collection) -
removeField
protected void removeField(DeleteAfterTestRunMethodTestRule.FieldBag fieldBag, Object instance) throws Exception - Throws:
Exception
-