@Test public void testService_SimpleQueryString_NoQueryPrefix() throws Exception { AdaptrisMessage msg = AdaptrisMessageFactory.getDefaultInstance().newMessage(); CreateQueryStringFromMetadata service = createService(); service.setIncludeQueryPrefix(false); msg.addMetadata("param1", "one"); msg.addMetadata("param2", "two"); msg.addMetadata("param3", "three"); execute(service, msg); assertTrue(msg.getMetadataValue("resultKey").contains("param2=two")); assertTrue(msg.getMetadataValue("resultKey").contains("param1=one")); assertTrue(msg.getMetadataValue("resultKey").contains("param3=three")); assertFalse(msg.getMetadataValue("resultKey").startsWith("?")); }
public void setIncludeQueryPrefix(Boolean b) { includeQueryPrefix = b; }
CreateQueryStringFromMetadata extends UrlEncodedMetadataValues { public void setIncludeQueryPrefix(Boolean b) { includeQueryPrefix = b; } }
CreateQueryStringFromMetadata extends UrlEncodedMetadataValues { public void setIncludeQueryPrefix(Boolean b) { includeQueryPrefix = b; } CreateQueryStringFromMetadata(); }
CreateQueryStringFromMetadata extends UrlEncodedMetadataValues { public void setIncludeQueryPrefix(Boolean b) { includeQueryPrefix = b; } CreateQueryStringFromMetadata(); @Override void prepare(); @Override void doService(AdaptrisMessage msg); String getResultKey(); void setResultKey(String resultKey); Boolean getIncludeQueryPrefix(); void setIncludeQueryPrefix(Boolean b); }
CreateQueryStringFromMetadata extends UrlEncodedMetadataValues { public void setIncludeQueryPrefix(Boolean b) { includeQueryPrefix = b; } CreateQueryStringFromMetadata(); @Override void prepare(); @Override void doService(AdaptrisMessage msg); String getResultKey(); void setResultKey(String resultKey); Boolean getIncludeQueryPrefix(); void setIncludeQueryPrefix(Boolean b);  }