String errorMessage = "getting " + resId
+ " for representation " + rp.getClass().getName()
+ " instead of " + expectedId;
assertEquals(errorMessage, expectedId, resId);
Representation clone = rp.copy();
clone.set("float", "12.2");
float expected = 12.2f;
float result = clone.getNumber("float", asFloat);
errorMessage = "getting " + result + " for representation "
+ clone.getClass().getName() + " instead of "
+ expected;
assertTrue(errorMessage, expected == result);// no epsilon test
// here
}
} catch (Exception e) {