Class UniqueIdFormat
java.lang.Object
org.junit.platform.engine.UniqueIdFormat
- All Implemented Interfaces:
Serializable
Used to
parse(String) a UniqueId from a string representation
or to format(UniqueId) a UniqueId into a string representation.- Since:
- 1.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final charprivate static final UniqueIdFormatprivate final charprivate final charprivate final Patternprivate static final longprivate final char -
Constructor Summary
ConstructorsConstructorDescriptionUniqueIdFormat(char openSegment, char typeValueSeparator, char closeSegment, char segmentDelimiter) -
Method Summary
Modifier and TypeMethodDescriptionprivate StringcheckAllowed(String typeOrValue) private voidcheckDoesNotContain(String typeOrValue, char forbiddenCharacter) private UniqueId.SegmentcreateSegment(String segmentString) private static Stringprivate Stringdescribe(UniqueId.Segment segment) private static Stringencode(char c) private String(package private) StringFormat and return the string representation of the suppliedUniqueId.(package private) static UniqueIdFormat(package private) UniqueIdParse aUniqueIdfrom the supplied string representation.private static Stringquote(char c)
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
defaultFormat
-
openSegment
private final char openSegment -
closeSegment
private final char closeSegment -
segmentDelimiter
private final char segmentDelimiter -
typeValueSeparator
private final char typeValueSeparator -
segmentPattern
-
encodedCharacterMap
-
-
Constructor Details
-
UniqueIdFormat
UniqueIdFormat(char openSegment, char typeValueSeparator, char closeSegment, char segmentDelimiter)
-
-
Method Details
-
getDefault
-
quote
-
encode
-
parse
-
createSegment
private UniqueId.Segment createSegment(String segmentString) throws org.junit.platform.commons.JUnitException - Throws:
org.junit.platform.commons.JUnitException
-
checkAllowed
-
checkDoesNotContain
-
format
-
describe
-
encode
-
decode
-