Class TestType

  • All Implemented Interfaces:
    com.fasterxml.jackson.databind.JsonSerializable

    public final class TestType
    extends java.lang.Object
    implements com.fasterxml.jackson.databind.JsonSerializable
    Value class that captures most of the enum flavor while allowing library users to extend the supported types of test.
    • Field Detail

      • ANONYMOUS_USER

        public static final TestType ANONYMOUS_USER
      • AUTHENTICATED_USER

        public static final TestType AUTHENTICATED_USER
      • EMAIL_ADDRESS

        public static final TestType EMAIL_ADDRESS
      • RANDOM

        public static final TestType RANDOM
      • PAGE

        public static final TestType PAGE
        Deprecated.
        Legacy from migration to github
      • COMPANY

        public static final TestType COMPANY
        Deprecated.
        Legacy from migration to github
    • Method Detail

      • register

        @Nonnull
        public static TestType register​(@Nonnull
                                        java.lang.String name)
      • addAllowedDependency

        public void addAllowedDependency​(@Nonnull
                                         TestType dependency)
      • isAllowedDependency

        public boolean isAllowedDependency​(@Nonnull
                                           TestType dependency)
      • allowedDependenciesToString

        public java.lang.String allowedDependenciesToString()
      • name

        public java.lang.String name()
      • values

        public static TestType[] values()
      • all

        public static java.util.Collection<TestType> all()
      • serializeWithType

        public void serializeWithType​(com.fasterxml.jackson.core.JsonGenerator jsonGenerator,
                                      com.fasterxml.jackson.databind.SerializerProvider serializerProvider,
                                      com.fasterxml.jackson.databind.jsontype.TypeSerializer typeSerializer)
                               throws java.io.IOException
        Specified by:
        serializeWithType in interface com.fasterxml.jackson.databind.JsonSerializable
        Throws:
        java.io.IOException
      • serialize

        public void serialize​(@Nonnull
                              com.fasterxml.jackson.core.JsonGenerator jsonGenerator,
                              @Nonnull
                              com.fasterxml.jackson.databind.SerializerProvider serializerProvider)
                       throws java.io.IOException
        Specified by:
        serialize in interface com.fasterxml.jackson.databind.JsonSerializable
        Throws:
        java.io.IOException
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • getTestType

        public static TestType getTestType​(java.lang.String value)