Class TestReference

  • All Implemented Interfaces:
    Serializable, Cloneable, Comparable<org.xwiki.model.reference.EntityReference>

    public class TestReference
    extends org.xwiki.model.reference.DocumentReference
    Make it easy for tests to get a unique page reference for testing (when needed).
    Since:
    11.2RC1
    Version:
    $Id: e1c8d78dd7e10189f65c338956c8cb2cc4cf6f95 $
    See Also:
    Serialized Form
    • Field Summary

      • Fields inherited from class org.xwiki.model.reference.DocumentReference

        TYPE_PROVIDER
      • Fields inherited from class org.xwiki.model.reference.EntityReference

        TOSTRING_SERIALIZER
    • Constructor Summary

      Constructors 
      Constructor Description
      TestReference​(org.junit.jupiter.api.extension.ExtensionContext extensionContext)  
    • Method Summary

      • Methods inherited from class org.xwiki.model.reference.DocumentReference

        getLastSpaceReference, getLocalDocumentReference, getLocaleDocumentReference, getSpaceReferences, getWikiReference, replaceParent, replaceParent, setParent, setType, setWikiReference, toString, withoutLocale
      • Methods inherited from class org.xwiki.model.reference.AbstractLocalizedEntityReference

        getLocale, setLocale, setParameter
      • Methods inherited from class org.xwiki.model.reference.EntityReference

        appendParent, compareTo, equals, equals, equals, equalsNonRecursive, extractFirstReference, extractReference, getName, getParameter, getParameters, getParent, getReversedReferenceChain, getRoot, getType, hashCode, hasParent, removeParent, setName, setParameters, size
    • Constructor Detail

      • TestReference

        public TestReference​(org.junit.jupiter.api.extension.ExtensionContext extensionContext)
        Parameters:
        extensionContext - the test context