Class TestTag
java.lang.Object
org.junit.platform.engine.TestTag
- All Implemented Interfaces:
Serializable
-
Field Summary
FieldsModifier and TypeFieldDescriptionReserved characters that are not permissible as part of a tag name. -
Method Summary
-
Field Details
-
RESERVED_CHARACTERS
-
-
Method Details
-
isValid
Determine if the supplied tag name is valid with regard to the supported syntax for tags.Syntax Rules for Tags
- A tag must not be
null. - A tag must not be blank.
- A stripped tag must not contain whitespace.
- A stripped tag must not contain ISO control characters.
- A stripped tag must not contain reserved characters.
If this method returns
truefor a given name, it is then a valid candidate for thecreate()factory method.- Parameters:
name- the name of the tag to validate; may benullor blank- Returns:
trueif the supplied tag name conforms to the supported syntax for tags- See Also:
- A tag must not be
-
create
Create aTestTagfrom the suppliedname.Consider checking whether the syntax of the supplied
nameis valid before attempting to create aTestTagusing this factory method.Note: the supplied
namewill be stripped.- Parameters:
name- the name of the tag; must be syntactically valid- Throws:
PreconditionViolationException- if the supplied tag name is not syntactically valid- See Also:
-
getName
Get the name of this tag.- Returns:
- the name of this tag; never
nullor blank
-
equals
-
hashCode
-
toString
-