use of com.adaptris.util.KeyValuePairCollection in project interlok by adaptris.
the class MetadataHelperTest method testConvertFromKeyValuePairs.
@Test
public void testConvertFromKeyValuePairs() {
KeyValuePairCollection elements = new KeyValuePairCollection();
elements.add(new KeyValuePair("test", "value"));
assertNotNull(convertFromKeyValuePairs(elements));
assertTrue(convertFromKeyValuePairs(elements).contains(new MetadataElement("test", "")));
}
use of com.adaptris.util.KeyValuePairCollection in project interlok by adaptris.
the class MetadataCollectionTest method testContructor_KVPS.
@Test
public void testContructor_KVPS() {
KeyValuePairCollection elements = new KeyValuePairCollection();
elements.add(new KeyValuePair("test", "value"));
MetadataCollection c = new MetadataCollection(elements);
assertTrue(c.containsKey("test"));
}
use of com.adaptris.util.KeyValuePairCollection in project interlok by adaptris.
the class CopyMetadataServiceTest method createService.
private CopyMetadataService createService() {
CopyMetadataService service = new CopyMetadataService();
service.setMetadataKeys(new KeyValuePairCollection(Arrays.asList(new KeyValuePair[] { new KeyValuePair(KEY_TO_BE_COPIED, NEW_KEY_1) })));
return service;
}
Aggregations