use of com.adaptris.util.KeyValuePair in project interlok by adaptris.
the class SimpleFactoryConfigurationTest method testApplyTopicConnectionFactory_NonBoolean.
@Test
public void testApplyTopicConnectionFactory_NonBoolean() throws Exception {
SimpleFactoryConfiguration extras = create(new KeyValuePair(SOME_BOOLEAN_VALUE, "fred"));
DummyConnectionFactory mycf = new DummyConnectionFactory();
extras.applyConfiguration(mycf);
doBaseAssertions(mycf);
}
use of com.adaptris.util.KeyValuePair in project interlok by adaptris.
the class SimpleFactoryConfigurationTest method createBase.
private SimpleFactoryConfiguration createBase() {
SimpleFactoryConfiguration result = new SimpleFactoryConfiguration();
KeyValuePairSet kvps = new KeyValuePairSet();
kvps.add(new KeyValuePair(SOME_INT_VALUE, String.valueOf(INT_VALUE_1)));
kvps.add(new KeyValuePair(SOME_LONG_VALUE, String.valueOf(LONG_VALUE_1)));
kvps.add(new KeyValuePair(SOME_STRING_VALUE, SOME_STRING));
kvps.add(new KeyValuePair(SOME_BOOLEAN_VALUE, Boolean.TRUE.toString()));
kvps.add(new KeyValuePair(SOME_FLOAT_VALUE, String.valueOf(FLOAT_VALUE_1)));
kvps.add(new KeyValuePair(SOME_DOUBLE_VALUE, String.valueOf(DOUBLE_VALUE_1)));
kvps.add(new KeyValuePair(SOME_INTEGER_OBJ_VALUE, String.valueOf(INT_VALUE_1)));
kvps.add(new KeyValuePair(SOME_LONG_OBJ_VALUE, String.valueOf(LONG_VALUE_1)));
kvps.add(new KeyValuePair(SOME_DOUBLE_OBJ_VALUE, String.valueOf(DOUBLE_VALUE_1)));
kvps.add(new KeyValuePair(SOME_FLOAT_OBJ_VALUE, String.valueOf(FLOAT_VALUE_1)));
kvps.add(new KeyValuePair(SOME_BOOLEAN_OBJ_VALUE, Boolean.TRUE.toString()));
result.setProperties(kvps);
return result;
}
use of com.adaptris.util.KeyValuePair in project interlok by adaptris.
the class SimpleFactoryConfigurationTest method testApplyQueueConnectionFactory_NonDouble.
@Test
public void testApplyQueueConnectionFactory_NonDouble() throws Exception {
SimpleFactoryConfiguration extras = create(new KeyValuePair(SOME_DOUBLE_VALUE, "fred"));
DummyConnectionFactory mycf = new DummyConnectionFactory();
extras.applyConfiguration(mycf);
doBaseAssertions(mycf);
}
use of com.adaptris.util.KeyValuePair in project interlok by adaptris.
the class SimpleFactoryConfigurationTest method testApplyQueueConnectionFactory_NoSetter.
@Test
public void testApplyQueueConnectionFactory_NoSetter() throws Exception {
SimpleFactoryConfiguration extras = create(new KeyValuePair("HelloThere", "fred"));
DummyConnectionFactory mycf = new DummyConnectionFactory();
extras.applyConfiguration(mycf);
doBaseAssertions(mycf);
}
use of com.adaptris.util.KeyValuePair in project interlok by adaptris.
the class SimpleFactoryConfigurationTest method testApplyTopicConnectionFactory_NonFloat.
@Test
public void testApplyTopicConnectionFactory_NonFloat() throws Exception {
SimpleFactoryConfiguration extras = create(new KeyValuePair(SOME_FLOAT_VALUE, "fred"));
DummyConnectionFactory mycf = new DummyConnectionFactory();
extras.applyConfiguration(mycf);
doBaseAssertions(mycf);
}
Aggregations