use of com.adaptris.util.KeyValuePairSet in project interlok by adaptris.
the class RegexpValueMatcherTest method create.
private static KeyValuePairSet create() {
KeyValuePairSet result = new KeyValuePairSet();
result.addKeyValuePair(new KeyValuePair("^.*google.com$", "FromGoogle"));
result.addKeyValuePair(new KeyValuePair("^.*microsoft.com$", "FromMicrosoft"));
result.addKeyValuePair(new KeyValuePair("^.*apple.com$", "FromApple"));
return result;
}
use of com.adaptris.util.KeyValuePairSet in project interlok by adaptris.
the class XpathObjectMetadataServiceTest method testSetNamespaceContext.
@Test
public void testSetNamespaceContext() {
XpathObjectMetadataService obj = new XpathObjectMetadataService();
assertNull(obj.getNamespaceContext());
KeyValuePairSet kvps = new KeyValuePairSet();
kvps.add(new KeyValuePair("hello", "world"));
obj.setNamespaceContext(kvps);
assertEquals(kvps, obj.getNamespaceContext());
obj.setNamespaceContext(null);
assertNull(obj.getNamespaceContext());
}
Aggregations