Package org.mongounit

Enum Class LocationType

java.lang.Object
java.lang.Enum<LocationType>
org.mongounit.LocationType
All Implemented Interfaces:
Serializable, Comparable<LocationType>, Constable

public enum LocationType extends Enum<LocationType>
LocationType enum specifies how 'locations' values in SeedWithDataset and AssertMatchesDataset annotations should be interpreted.
  • Nested Class Summary

    Nested classes/interfaces inherited from class java.lang.Enum

    Enum.EnumDesc<E extends Enum<E>>
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    Location value should be treated as an absolute file path.
    Location should be interpreted relative to the classpath root plus the package structure along with class name (or 'name' specified by MongoUnitTest), i.e., if the fully qualified name of the test class is 'com.mytest.MyIT' and this value is selected, the file will be searched for in the '/com/mytest/MyIT' folder relative to the root of the classpath.
    Location should be interpreted relative to the root of the classpath.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the enum constant of this class with the specified name.
    static LocationType[]
    Returns an array containing the constants of this enum class, in the order they are declared.

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • CLASSPATH_ROOT

      public static final LocationType CLASSPATH_ROOT
      Location should be interpreted relative to the root of the classpath.
    • CLASS

      public static final LocationType CLASS
      Location should be interpreted relative to the classpath root plus the package structure along with class name (or 'name' specified by MongoUnitTest), i.e., if the fully qualified name of the test class is 'com.mytest.MyIT' and this value is selected, the file will be searched for in the '/com/mytest/MyIT' folder relative to the root of the classpath. If 'com.mytest.MyIT' class' MongoUnitTest annotation specifies 'name' of 'test1', the file will be searched for in the '/com/mytest/test1' folder relative to the root of the classpath.
    • ABSOLUTE

      public static final LocationType ABSOLUTE
      Location value should be treated as an absolute file path.
  • Method Details

    • values

      public static LocationType[] 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 LocationType 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