11d580d0f6ee4f21eb309ba7b509d2c6d671c4044Bjorn Bringert/*
21d580d0f6ee4f21eb309ba7b509d2c6d671c4044Bjorn Bringert * Copyright (C) 2008 The Guava Authors
31d580d0f6ee4f21eb309ba7b509d2c6d671c4044Bjorn Bringert *
41d580d0f6ee4f21eb309ba7b509d2c6d671c4044Bjorn Bringert * Licensed under the Apache License, Version 2.0 (the "License");
51d580d0f6ee4f21eb309ba7b509d2c6d671c4044Bjorn Bringert * you may not use this file except in compliance with the License.
61d580d0f6ee4f21eb309ba7b509d2c6d671c4044Bjorn Bringert * You may obtain a copy of the License at
71d580d0f6ee4f21eb309ba7b509d2c6d671c4044Bjorn Bringert *
81d580d0f6ee4f21eb309ba7b509d2c6d671c4044Bjorn Bringert * http://www.apache.org/licenses/LICENSE-2.0
91d580d0f6ee4f21eb309ba7b509d2c6d671c4044Bjorn Bringert *
101d580d0f6ee4f21eb309ba7b509d2c6d671c4044Bjorn Bringert * Unless required by applicable law or agreed to in writing, software
111d580d0f6ee4f21eb309ba7b509d2c6d671c4044Bjorn Bringert * distributed under the License is distributed on an "AS IS" BASIS,
121d580d0f6ee4f21eb309ba7b509d2c6d671c4044Bjorn Bringert * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
131d580d0f6ee4f21eb309ba7b509d2c6d671c4044Bjorn Bringert * See the License for the specific language governing permissions and
141d580d0f6ee4f21eb309ba7b509d2c6d671c4044Bjorn Bringert * limitations under the License.
151d580d0f6ee4f21eb309ba7b509d2c6d671c4044Bjorn Bringert */
161d580d0f6ee4f21eb309ba7b509d2c6d671c4044Bjorn Bringert
171d580d0f6ee4f21eb309ba7b509d2c6d671c4044Bjorn Bringertpackage com.google.common.collect.testing.features;
181d580d0f6ee4f21eb309ba7b509d2c6d671c4044Bjorn Bringert
197dd252788645e940eada959bdde927426e2531c9Paul Duffinimport com.google.common.annotations.GwtCompatible;
207dd252788645e940eada959bdde927426e2531c9Paul Duffin
211d580d0f6ee4f21eb309ba7b509d2c6d671c4044Bjorn Bringertimport java.lang.annotation.Documented;
221d580d0f6ee4f21eb309ba7b509d2c6d671c4044Bjorn Bringertimport java.lang.annotation.Retention;
231d580d0f6ee4f21eb309ba7b509d2c6d671c4044Bjorn Bringertimport java.lang.annotation.RetentionPolicy;
241d580d0f6ee4f21eb309ba7b509d2c6d671c4044Bjorn Bringertimport java.lang.annotation.Target;
251d580d0f6ee4f21eb309ba7b509d2c6d671c4044Bjorn Bringert
261d580d0f6ee4f21eb309ba7b509d2c6d671c4044Bjorn Bringert/**
271d580d0f6ee4f21eb309ba7b509d2c6d671c4044Bjorn Bringert * Use this to meta-annotate XxxFeature.Require annotations, so that those
281d580d0f6ee4f21eb309ba7b509d2c6d671c4044Bjorn Bringert * annotations can be used to decide whether to apply a test to a given
291d580d0f6ee4f21eb309ba7b509d2c6d671c4044Bjorn Bringert * class-under-test.
301d580d0f6ee4f21eb309ba7b509d2c6d671c4044Bjorn Bringert * <br>
311d580d0f6ee4f21eb309ba7b509d2c6d671c4044Bjorn Bringert * This is needed because annotations can't implement interfaces, which is also
321d580d0f6ee4f21eb309ba7b509d2c6d671c4044Bjorn Bringert * why reflection is used to extract values from the properties of the various
331d580d0f6ee4f21eb309ba7b509d2c6d671c4044Bjorn Bringert * annotations.
341d580d0f6ee4f21eb309ba7b509d2c6d671c4044Bjorn Bringert *
351d580d0f6ee4f21eb309ba7b509d2c6d671c4044Bjorn Bringert * @see CollectionFeature.Require
361d580d0f6ee4f21eb309ba7b509d2c6d671c4044Bjorn Bringert *
371d580d0f6ee4f21eb309ba7b509d2c6d671c4044Bjorn Bringert * @author George van den Driessche
381d580d0f6ee4f21eb309ba7b509d2c6d671c4044Bjorn Bringert */
391d580d0f6ee4f21eb309ba7b509d2c6d671c4044Bjorn Bringert@Target(value = {java.lang.annotation.ElementType.ANNOTATION_TYPE})
401d580d0f6ee4f21eb309ba7b509d2c6d671c4044Bjorn Bringert@Retention(value = RetentionPolicy.RUNTIME)
411d580d0f6ee4f21eb309ba7b509d2c6d671c4044Bjorn Bringert@Documented
427dd252788645e940eada959bdde927426e2531c9Paul Duffin@GwtCompatible
431d580d0f6ee4f21eb309ba7b509d2c6d671c4044Bjorn Bringertpublic @interface TesterAnnotation {
441d580d0f6ee4f21eb309ba7b509d2c6d671c4044Bjorn Bringert}
45