Package org.mongounit
Enum Class LocationType
- All Implemented Interfaces:
Serializable
,Comparable<LocationType>
,Constable
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 ConstantDescriptionLocation 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 byMongoUnitTest
), 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 TypeMethodDescriptionstatic LocationType
Returns the enum constant of this class with the specified name.static LocationType[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CLASSPATH_ROOT
Location should be interpreted relative to the root of the classpath. -
CLASS
Location should be interpreted relative to the classpath root plus the package structure along with class name (or 'name' specified byMongoUnitTest
), 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
Location value should be treated as an absolute file path.
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-