Class TestPojo
java.lang.Object
de.hybris.platform.integrationservices.TestPojo
A test POJO used for tests.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddoVoid()Used to test error when readMethod is of type void.booleanUsed to test success when readMethod has no parameters and a primitivebooleanreturn typeintgetByLocale(Locale locale) Used to test success when readMethod has non-empty, localized parametersintgetByMultipleLocales(Locale locale1, Locale locale2) Used to test error when readMethod has multiple parameters, even if they are localizedchargetByte()Used to test success when readMethod has no parameters and a primitivebytereturn typechargetChar()Used to test success when readMethod has no parameters and a primitivecharreturn typedoubleUsed to test success when readMethod has no parameters and a primitivedoublereturn typefloatgetFloat()Used to test success when readMethod has no parameters and a primitivefloatreturn typeintgetIndexedProperty(int number) Used to test error when readMethod has non-empty, non-localized parametersintgetInt()Used to test success when readMethod has no parameters and a primitiveintreturn typelonggetLong()Used to test success when readMethod has no parameters and a primitivelongreturn typeshortgetShort()Used to test success when readMethod has no parameters and a primitiveshortreturn type
-
Constructor Details
-
TestPojo
public TestPojo()
-
-
Method Details
-
doVoid
public void doVoid()Used to test error when readMethod is of type void. -
getIndexedProperty
public int getIndexedProperty(int number) Used to test error when readMethod has non-empty, non-localized parameters- Parameters:
number- some non-localized parameter- Returns:
- some non-void return type
-
getBoolean
public boolean getBoolean()Used to test success when readMethod has no parameters and a primitivebooleanreturn type- Returns:
- some arbitrary value
-
getByte
public char getByte()Used to test success when readMethod has no parameters and a primitivebytereturn type- Returns:
- some arbitrary value
-
getChar
public char getChar()Used to test success when readMethod has no parameters and a primitivecharreturn type- Returns:
- some arbitrary value
-
getDouble
public double getDouble()Used to test success when readMethod has no parameters and a primitivedoublereturn type- Returns:
- some arbitrary value
-
getFloat
public float getFloat()Used to test success when readMethod has no parameters and a primitivefloatreturn type- Returns:
- some arbitrary value
-
getInt
public int getInt()Used to test success when readMethod has no parameters and a primitiveintreturn type- Returns:
- some arbitrary value
-
getLong
public long getLong()Used to test success when readMethod has no parameters and a primitivelongreturn type- Returns:
- some arbitrary value
-
getShort
public short getShort()Used to test success when readMethod has no parameters and a primitiveshortreturn type- Returns:
- some arbitrary value
-
getByLocale
Used to test success when readMethod has non-empty, localized parameters- Parameters:
locale- some localized parameter- Returns:
- some non-void return type
-
getByMultipleLocales
Used to test error when readMethod has multiple parameters, even if they are localized- Parameters:
locale1- some localized parameterlocale2- another localized parameter
-
getComposedType
-