Annotation Interface ArchTag


@Inherited @Documented @Retention(RUNTIME) @PublicAPI(usage=ACCESS) @Repeatable(ArchTags.class) @Target({TYPE,METHOD,FIELD}) public @interface ArchTag
@ArchTag is a repeatable annotation that allows tagging any @ArchTest field/method/class. Sets of rules can be classified to run together this way. Rules could be tagged like


@ArchTag("dependencies")
 static ArchRule no_accesses_from_server_to_client = classes()...
 
Users of ArchTag must 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
    The actual tag.