@Test void resolveWithExplicitDocumentReference() { DocumentReference reference = this.documentResolver.resolve(null, new DocumentReference("wiki", "space", "page")); assertEquals("page", reference.getName()); assertEquals("space", reference.getLastSpaceReference().getName()); assertEquals("wiki", reference.getWikiReference().getName()); }
@Override public DocumentReference resolve(EntityReference documentReferenceRepresentation, Object... parameters) { return new DocumentReference(this.entityReferenceResolver.resolve(documentReferenceRepresentation, EntityType.DOCUMENT, parameters)); }
ExplicitReferenceDocumentReferenceResolver implements DocumentReferenceResolver<EntityReference> { @Override public DocumentReference resolve(EntityReference documentReferenceRepresentation, Object... parameters) { return new DocumentReference(this.entityReferenceResolver.resolve(documentReferenceRepresentation, EntityType.DOCUMENT, parameters)); } }
ExplicitReferenceDocumentReferenceResolver implements DocumentReferenceResolver<EntityReference> { @Override public DocumentReference resolve(EntityReference documentReferenceRepresentation, Object... parameters) { return new DocumentReference(this.entityReferenceResolver.resolve(documentReferenceRepresentation, EntityType.DOCUMENT, parameters)); }  }
ExplicitReferenceDocumentReferenceResolver implements DocumentReferenceResolver<EntityReference> { @Override public DocumentReference resolve(EntityReference documentReferenceRepresentation, Object... parameters) { return new DocumentReference(this.entityReferenceResolver.resolve(documentReferenceRepresentation, EntityType.DOCUMENT, parameters)); }  @Override DocumentReference resolve(EntityReference documentReferenceRepresentation, Object... parameters); }
ExplicitReferenceDocumentReferenceResolver implements DocumentReferenceResolver<EntityReference> { @Override public DocumentReference resolve(EntityReference documentReferenceRepresentation, Object... parameters) { return new DocumentReference(this.entityReferenceResolver.resolve(documentReferenceRepresentation, EntityType.DOCUMENT, parameters)); }  @Override DocumentReference resolve(EntityReference documentReferenceRepresentation, Object... parameters);  }