Package com.tngtech.archunit.junit
Annotation Type ArchTag
-
@Inherited @Documented @Retention(RUNTIME) @PublicAPI(usage=ACCESS) @Repeatable(ArchTags.class) @Target({TYPE,METHOD,FIELD}) public @interface ArchTag
@ArchTagis a repeatable annotation that allows tagging any@ArchTestfield/method/class. Sets of rules can be classified to run together this way. Rules could be tagged like
Users of@ArchTag("dependencies") static ArchRule no_accesses_from_server_to_client = classes()...ArchTagmust follow the syntax conventions that the JUnit Platform Engine defines:- A tag must not be blank.
- A trimmed tag must not contain whitespace.
- A trimmed tag must not contain ISO control characters.
- A trimmed tag must not contain any of the following
reserved characters.
,: comma(: left parenthesis): right parenthesis&: ampersand|: vertical bar!: exclamation point
-
-
Required Element Summary
Required Elements Modifier and Type Required Element Description java.lang.StringvalueThe actual tag.
-
-
-
Element Detail
-
value
java.lang.String value
The actual tag. It will first be trimmed and must then adhere to the Syntax Rules for Tags. Otherwise the tag will be ignored.
-
-