blob: 9279a8061517f774ad628ca18be1f690a1ce4471 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
/*****************************************************************************
* Copyright (c) 2021 Christian W. Damus, CEA LIST, and others.
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* Christian W. Damus - Initial API and implementation
*
*****************************************************************************/
package org.eclipse.papyrus.toolsmiths.validation.common.tests.rules;
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;
/**
* Annotates a test or test class with an auxiliary project to import after importing
* the text project (thus it may depend on the test project).
*
* @see TestProjectFixture
* @see TestProject
*/
@Target({ ElementType.METHOD, ElementType.TYPE })
@Retention(RetentionPolicy.RUNTIME)
@Repeatable(AuxProject.AuxProjects.class)
public @interface AuxProject {
/** The path to the project template folder, relative to the {@code resources/} folder. */
String value();
/** The name of the project to create, in case it is different to the template folder name. */
String as() default "";
//
// Nested types
//
/**
* Container of the repeatable {@code AuxProject} annotation.
*/
@Target({ ElementType.METHOD, ElementType.TYPE })
@Retention(RetentionPolicy.RUNTIME)
public @interface AuxProjects {
AuxProject[] value();
}
}
|