Package com.hybris.cockpitng.testing
Class AbstractCockpitngUnitTest<T>
- java.lang.Object
-
- com.hybris.cockpitng.testing.AbstractCockpitngUnitTest<T>
-
- Direct Known Subclasses:
AbstractCockpitActionRendererUnitTest,AbstractCockpitEditorRendererUnitTest,AbstractWidgetUnitTest
public abstract class AbstractCockpitngUnitTest<T> extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description AbstractCockpitngUnitTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancanBeSkipped(java.util.List<java.lang.reflect.Method> methodsToSkipList, java.lang.reflect.Method method)protected java.util.List<java.lang.reflect.Method>getMethodsToSkip(ExtensibleWidget extensibleWidget)protected java.lang.Class<? extends T>getWidgetType()protected booleanisSpecialPrivateMethod(java.lang.reflect.Method method)voidtestExtensibleConstructors()voidtestExtensibleFields()The test checks if all service/facade/ZK fields are accessible either via modifier (protected or less restrictive) or getter.voidtestExtensibleMethods()protected voidtestNullSafeMethods(java.lang.Object target, java.util.Collection<java.lang.reflect.Method> methodsToTest)
-
-
-
Method Detail
-
testNullSafeMethods
protected void testNullSafeMethods(java.lang.Object target, java.util.Collection<java.lang.reflect.Method> methodsToTest)
-
testExtensibleConstructors
public void testExtensibleConstructors()
-
testExtensibleFields
public void testExtensibleFields()
The test checks if all service/facade/ZK fields are accessible either via modifier (protected or less restrictive) or getter.
-
testExtensibleMethods
public void testExtensibleMethods()
-
canBeSkipped
protected boolean canBeSkipped(java.util.List<java.lang.reflect.Method> methodsToSkipList, java.lang.reflect.Method method)
-
getMethodsToSkip
protected java.util.List<java.lang.reflect.Method> getMethodsToSkip(ExtensibleWidget extensibleWidget)
-
isSpecialPrivateMethod
protected boolean isSpecialPrivateMethod(java.lang.reflect.Method method)
-
getWidgetType
protected java.lang.Class<? extends T> getWidgetType()
-
-