All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.jupiter.tools.spring.test.mongo.annotation.ExpectedMongoDataSet Maven / Gradle / Ivy

There is a newer version: 0.15
Show newest version
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