@Test
public void testConfigurationPrimitiveString() {
ServiceReference ref = ipojoHelper.getServiceReferenceByName(CheckService.class.getName(), instance.getInstanceName());
assertNotNull("Test check service availability", ref);
CheckService check = (CheckService) osgiHelper.getRawServiceObject(ref);
Properties props = check.getProps();
Byte b = (Byte) props.get("b");
Short s = (Short) props.get("s");
Integer i = (Integer) props.get("i");
Long l = (Long) props.get("l");
Double d = (Double) props.get("d");
Float f = (Float) props.get("f");
Character c = (Character) props.get("c");
Boolean bool = (Boolean) props.get("bool");
assertEquals("Check b", b, new Byte("1"));
assertEquals("Check s", s, new Short("1"));
assertEquals("Check i", i, new Integer("1"));
assertEquals("Check l", l, new Long("1"));
assertEquals("Check d", d, new Double("1"));
assertEquals("Check f", f, new Float("1"));
assertEquals("Check c", c, new Character('a'));
assertEquals("Check bool", bool, new Boolean("true"));
// Integer upb = (Integer) props.get("upb");
// Integer ups = (Integer) props.get("ups");
// Integer upi = (Integer) props.get("upi");
// Integer upl = (Integer) props.get("upl");
// Integer upd = (Integer) props.get("upd");
// Integer upf = (Integer) props.get("upf");
// Integer upc = (Integer) props.get("upc");
// Integer upbool = (Integer) props.get("upbool");
//
// assertEquals("Check upb", upb, new Integer(1));
// assertEquals("Check ups", ups, new Integer(1));
// assertEquals("Check upi", upi, new Integer(1));
// assertEquals("Check upl", upl, new Integer(1));
// assertEquals("Check upd", upd, new Integer(1));
// assertEquals("Check upf", upf, new Integer(1));
// assertEquals("Check upc", upc, new Integer(1));
// assertEquals("Check upbool", upbool, new Integer(1));
reconfigureString();
ref = ipojoHelper.getServiceReferenceByName(CheckService.class.getName(), instance.getInstanceName());
assertNotNull("Test check service availability", ref);
check = (CheckService) osgiHelper.getRawServiceObject(ref);
props = check.getProps();
b = (Byte) props.get("b");
s = (Short) props.get("s");
i = (Integer) props.get("i");
l = (Long) props.get("l");