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

com.tinkerpop.gremlin.ExceptionCoverage Maven / Gradle / Ivy

The newest version!
package com.tinkerpop.gremlin;

import java.lang.annotation.ElementType;
import java.lang.annotation.Repeatable;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * Defines the list of standard exceptions covered by a test set.  Used in conjunction with the exception compliance
 * unit tests to ensure full coverage of defined exceptions in Gremlin Structure.  The list of exceptions is defined with by
 * the exception class and the list of methods that generate the exceptions that are covered by the test.
 *
 * @author Stephen Mallette (http://stephen.genoprime.com)
 */
@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)
@Repeatable(ExceptionCoverageSet.class)
public @interface ExceptionCoverage {
    /**
     * The exception class from Gremlin Structure that contains the exceptions that are covered by the block of tests.
     */
    public Class exceptionClass();

    /**
     * The list of method names from the related {@link #exceptionClass()} that are covered by the tests.
     */
    public String[] methods();
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy