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

org.scalatest.TagAnnotation Maven / Gradle / Ivy

/*
 * Copyright 2001-2013 Artima, Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package org.scalatest;

import java.lang.annotation.*; 

/**
 * Annotation used to annotate annotation interfaces that define tags for ScalaTest tests.
 *
 * 

* Note: This is actually an annotation defined in Java, not a Scala trait. It must be defined in Java instead of Scala so it will be accessible * at runtime. It has been inserted into Scaladoc by pretending it is a trait. *

* *

* ScalaTest will only consider annotations that are themselves annotated with TagAnnotation * as tag annotations, to avoid accidentally interpreting arbitrary annotations as tags. You use TagAnnotation, * therefore, when you define a tag annotation (which you must do in Java). Here's an example: *

* *
 * package com.mycompany.myproject.testing.tags;
 *
 * import java.lang.annotation.*; 
 * import org.scalatest.TagAnnotation * 
 *
 * @TagAnnotation
 * @Retention(RetentionPolicy.RUNTIME)
 * @Target({ElementType.METHOD, ElementType.TYPE})
 * public @interface DbTest {}
 * 
* *

* For more information, see the documentation for class Tag. *

* *
*/ @Retention(RetentionPolicy.RUNTIME) @Target(ElementType.ANNOTATION_TYPE) public @interface TagAnnotation { String value() default ""; }



© 2015 - 2024 Weber Informatics LLC | Privacy Policy