1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 package org.chromium.base.test.util;
7 import java.lang.annotation.ElementType;
8 import java.lang.annotation.Retention;
9 import java.lang.annotation.RetentionPolicy;
10 import java.lang.annotation.Target;
13 * The java instrumentation tests are normally fairly large (in terms of
14 * dependencies), and the test suite ends up containing a large amount of
15 * tests that are not trivial to filter / group just by their names.
16 * Instead, we use this annotation: each test should be annotated as:
17 * @Feature({"Foo", "Bar"})
18 * in order for the test runner scripts to be able to filter and group
19 * them accordingly (for instance, this enable us to run all tests that exercise
22 @Target(ElementType.METHOD)
23 @Retention(RetentionPolicy.RUNTIME)
24 public @interface Feature {
26 * @return A list of feature names.
28 public String[] value();