@Test public void fromXAttachmentReturnsNullForNullArgument() throws ComponentLookupException { Assert.assertNull(this.mocker.getComponentUnderTest().fromXWikiAttachment(null)); }
public Attachment fromXWikiAttachment(XWikiAttachment attachment) { if (attachment == null) { return null; } return new Attachment(attachment, this.userResolver, this.userSerializer, this.contextProvider); }
AttachmentAdapterFactory { public Attachment fromXWikiAttachment(XWikiAttachment attachment) { if (attachment == null) { return null; } return new Attachment(attachment, this.userResolver, this.userSerializer, this.contextProvider); } }
AttachmentAdapterFactory { public Attachment fromXWikiAttachment(XWikiAttachment attachment) { if (attachment == null) { return null; } return new Attachment(attachment, this.userResolver, this.userSerializer, this.contextProvider); }  }
AttachmentAdapterFactory { public Attachment fromXWikiAttachment(XWikiAttachment attachment) { if (attachment == null) { return null; } return new Attachment(attachment, this.userResolver, this.userSerializer, this.contextProvider); }  Attachment fromXWikiAttachment(XWikiAttachment attachment); Attachment fromJSON(JSONObject attachment); }
AttachmentAdapterFactory { public Attachment fromXWikiAttachment(XWikiAttachment attachment) { if (attachment == null) { return null; } return new Attachment(attachment, this.userResolver, this.userSerializer, this.contextProvider); }  Attachment fromXWikiAttachment(XWikiAttachment attachment); Attachment fromJSON(JSONObject attachment);  }