Enum Class JavaBeanTester

java.lang.Object
java.lang.Enum<JavaBeanTester>
com.codebox.bean.JavaBeanTester
All Implemented Interfaces:
Serializable, Comparable<JavaBeanTester>, Constable

public enum JavaBeanTester extends Enum<JavaBeanTester>
This helper class can be used to unit test the get/set/equals/canEqual/toString/hashCode methods of JavaBean-style Value Objects.
  • Method Details

    • values

      public static JavaBeanTester[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static JavaBeanTester valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • builder

      public static <T> JavaBeanTesterBuilder<T,?> builder(Class<T> clazz)
      Configure JavaBeanTester using Fluent API.
      Type Parameters:
      T - the generic type
      Parameters:
      clazz - the clazz
      Returns:
      A builder implementing the fluent API to configure JavaBeanTester
    • builder

      public static <T, E> JavaBeanTesterBuilder<T,E> builder(Class<T> clazz, Class<E> extension)
      Configure JavaBeanTester using Fluent API.
      Type Parameters:
      T - the generic type
      E - the element type
      Parameters:
      clazz - the clazz
      extension - the extension
      Returns:
      A builder implementing the fluent API to configure JavaBeanTester