@Test public void testService_NoContentType() throws Exception { String payload = formatAsFormData(createProperties()); FormDataToMetadata service = new FormDataToMetadata().withMetadataPrefix(null); AdaptrisMessage msg = AdaptrisMessageFactory.getDefaultInstance().newMessage(payload); execute(service, msg); assertEquals(payload, msg.getContent()); assertEquals(0, msg.getMetadata().size()); }
public FormDataToMetadata withMetadataPrefix(String s) { setMetadataPrefix(s); return this; }
FormDataToMetadata extends ServiceImp { public FormDataToMetadata withMetadataPrefix(String s) { setMetadataPrefix(s); return this; } }
FormDataToMetadata extends ServiceImp { public FormDataToMetadata withMetadataPrefix(String s) { setMetadataPrefix(s); return this; } FormDataToMetadata(); }
FormDataToMetadata extends ServiceImp { public FormDataToMetadata withMetadataPrefix(String s) { setMetadataPrefix(s); return this; } FormDataToMetadata(); @Override void prepare(); @Override void doService(AdaptrisMessage msg); String getContentTypeKey(); void setContentTypeKey(String s); String getMetadataPrefix(); void setMetadataPrefix(String metadataPrefix); FormDataToMetadata withMetadataPrefix(String s); FormDataToMetadata withContentTypeKey(String s); }
FormDataToMetadata extends ServiceImp { public FormDataToMetadata withMetadataPrefix(String s) { setMetadataPrefix(s); return this; } FormDataToMetadata(); @Override void prepare(); @Override void doService(AdaptrisMessage msg); String getContentTypeKey(); void setContentTypeKey(String s); String getMetadataPrefix(); void setMetadataPrefix(String metadataPrefix); FormDataToMetadata withMetadataPrefix(String s); FormDataToMetadata withContentTypeKey(String s); static final String DEFAULT_CONTENT_TYPE_KEY; static final String DEFAULT_CONTENT_TYPE_VALUE; }