Uses of Enum Class
org.mongounit.LocationType
-
Uses of LocationType in org.mongounit
Modifier and TypeMethodDescriptionstatic LocationType
Returns the enum constant of this class with the specified name.static LocationType[]
LocationType.values()
Returns an array containing the constants of this enum class, in the order they are declared.Modifier and TypeMethodDescriptionstatic void
MongoUnit.assertMatchesDataset
(String[] locations, LocationType locationType, Class<?> relativePackageClass) Asserts that whatever is currently in the database connected to by the MongoUnit framework matches the JSON datasets contained in files pointed to by the provided 'locations' array of paths.static List
<MongoUnitCollection> MongoUnit.loadDatasetFromLocations
(String[] locations, LocationType locationType, Class<?> relativePackageClass) Returns a list ofMongoUnitCollection
s that represent the JSON-based data pointed to by the provided 'locations' array of paths.static List
<MongoUnitCollection> MongoUnitUtil.retrieveDatasetFromLocations
(String[] fileLocations, LocationType locationType, Class<?> relativePackageClass, String testClassName) Returns List ofMongoUnitCollection
s based on the data pointed to by provided 'fileLocations'.static String
MongoUnitUtil.retrieveResourceFromFile
(String location, LocationType locationType, Class<?> relativePackageClass, String testClassName) static List
<MongoUnitCollection> MongoUnit.seedWithDataset
(String[] locations, LocationType locationType, Class<?> relativePackageClass) Seeds the database with the JSON-based datasets pointed to by the provided 'locations' path array.