com.jupiter.tools.spring.test.mongo.annotation.ExpectedMongoDataSet Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spring-test-mongo Show documentation
Show all versions of spring-test-mongo Show documentation
Tools suit to write integration tests for MongoDb in Spring Framework.
package com.jupiter.tools.spring.test.mongo.annotation;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* You can use this annotation in tests
* to check a state of the mongodb after the test execution.
*
* After test execution, all document collections will check
* to match to expected data set in the selected file.
*
* @author Korovin Anatoliy
*/
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.METHOD)
public @interface ExpectedMongoDataSet {
/**
* Path to the file with an expected data set (after test execution)
*
* @return path to file with an expected data set
*/
String value();
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy