Class TestPojo

java.lang.Object
de.hybris.platform.integrationservices.TestPojo

public class TestPojo extends Object
A test POJO used for tests.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Used to test error when readMethod is of type void.
    boolean
    Used to test success when readMethod has no parameters and a primitive boolean return type
    int
    Used to test success when readMethod has non-empty, localized parameters
    int
    getByMultipleLocales(Locale locale1, Locale locale2)
    Used to test error when readMethod has multiple parameters, even if they are localized
    char
    Used to test success when readMethod has no parameters and a primitive byte return type
    char
    Used to test success when readMethod has no parameters and a primitive char return type
     
    double
    Used to test success when readMethod has no parameters and a primitive double return type
    float
    Used to test success when readMethod has no parameters and a primitive float return type
    int
    getIndexedProperty(int number)
    Used to test error when readMethod has non-empty, non-localized parameters
    int
    Used to test success when readMethod has no parameters and a primitive int return type
    long
    Used to test success when readMethod has no parameters and a primitive long return type
    short
    Used to test success when readMethod has no parameters and a primitive short return type

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 primitive boolean return type
      Returns:
      some arbitrary value
    • getByte

      public char getByte()
      Used to test success when readMethod has no parameters and a primitive byte return type
      Returns:
      some arbitrary value
    • getChar

      public char getChar()
      Used to test success when readMethod has no parameters and a primitive char return type
      Returns:
      some arbitrary value
    • getDouble

      public double getDouble()
      Used to test success when readMethod has no parameters and a primitive double return type
      Returns:
      some arbitrary value
    • getFloat

      public float getFloat()
      Used to test success when readMethod has no parameters and a primitive float return type
      Returns:
      some arbitrary value
    • getInt

      public int getInt()
      Used to test success when readMethod has no parameters and a primitive int return type
      Returns:
      some arbitrary value
    • getLong

      public long getLong()
      Used to test success when readMethod has no parameters and a primitive long return type
      Returns:
      some arbitrary value
    • getShort

      public short getShort()
      Used to test success when readMethod has no parameters and a primitive short return type
      Returns:
      some arbitrary value
    • getByLocale

      public int getByLocale(Locale locale)
      Used to test success when readMethod has non-empty, localized parameters
      Parameters:
      locale - some localized parameter
      Returns:
      some non-void return type
    • getByMultipleLocales

      public int getByMultipleLocales(Locale locale1, Locale locale2)
      Used to test error when readMethod has multiple parameters, even if they are localized
      Parameters:
      locale1 - some localized parameter
      locale2 - another localized parameter
    • getComposedType

      public OrderModel getComposedType()