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 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) Methods inherited from class com.liferay.portal.kernel.test.rule.MethodTestRule
afterClass, beforeClass, createClassStatement
Methods 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:
afterMethod
in classAbstractTestRule<Void,
Void> - Throws:
Exception
-
addField
protected void addField(Map<Class<?>, DeleteAfterTestRunMethodTestRule.FieldBag> deleteAfterTestRunFieldBags, Class<?> clazz, Field field) -
beforeMethod
- Specified by:
beforeMethod
in 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
-