@Test public void resolveWithExplicitAttachmentReference() { DocumentReference documentReference = new DocumentReference("wiki", "space", "page"); AttachmentReference reference = this.resolver.resolve("", new AttachmentReference("file", documentReference)); assertEquals("file", reference.getName()); assertEquals(documentReference, reference.getDocumentReference()); }
@Override public AttachmentReference resolve(String attachmentReferenceRepresentation, Object... parameters) { return new AttachmentReference(this.entityReferenceResolver.resolve( attachmentReferenceRepresentation, EntityType.ATTACHMENT, parameters)); }
ExplicitStringAttachmentReferenceResolver implements AttachmentReferenceResolver<String> { @Override public AttachmentReference resolve(String attachmentReferenceRepresentation, Object... parameters) { return new AttachmentReference(this.entityReferenceResolver.resolve( attachmentReferenceRepresentation, EntityType.ATTACHMENT, parameters)); } }
ExplicitStringAttachmentReferenceResolver implements AttachmentReferenceResolver<String> { @Override public AttachmentReference resolve(String attachmentReferenceRepresentation, Object... parameters) { return new AttachmentReference(this.entityReferenceResolver.resolve( attachmentReferenceRepresentation, EntityType.ATTACHMENT, parameters)); }  }
ExplicitStringAttachmentReferenceResolver implements AttachmentReferenceResolver<String> { @Override public AttachmentReference resolve(String attachmentReferenceRepresentation, Object... parameters) { return new AttachmentReference(this.entityReferenceResolver.resolve( attachmentReferenceRepresentation, EntityType.ATTACHMENT, parameters)); }  @Override AttachmentReference resolve(String attachmentReferenceRepresentation, Object... parameters); }
ExplicitStringAttachmentReferenceResolver implements AttachmentReferenceResolver<String> { @Override public AttachmentReference resolve(String attachmentReferenceRepresentation, Object... parameters) { return new AttachmentReference(this.entityReferenceResolver.resolve( attachmentReferenceRepresentation, EntityType.ATTACHMENT, parameters)); }  @Override AttachmentReference resolve(String attachmentReferenceRepresentation, Object... parameters);  }