PmAttrUtil { public static <T_VALUE> String convertValueToString(PmAttr<T_VALUE> pmAttrCtxt, T_VALUE value) { @SuppressWarnings("unchecked") PmAttrBase<T_VALUE, ?> ab = (PmAttrBase<T_VALUE, ?>) pmAttrCtxt; return (value != null || ab.isConvertingNullValueImpl()) ? ab.valueToStringImpl(value) : null; }  @SuppressWarnings("unchecked") static void resetBackingValueToDefault(PmAttr<?>... attr); static void resetBackingValuesToDefault(PmObject rootPm); @SuppressWarnings("unchecked") static boolean isEmptyValue(PmAttr<?> pmAttr, Object value); @SuppressWarnings("unchecked") static T getBackingValue(PmAttr<?> pmAttr); static T_VALUE backingValueToValue(PmAttrBase<T_VALUE, T_BACKING_VALUE> pmAttrCtxt, T_BACKING_VALUE backingValue); static T_BACKING_VALUE valueToBackingValue(PmAttrBase<T_VALUE, T_BACKING_VALUE> pmAttrCtxt, T_VALUE value); static T_VALUE convertStringToValue(PmAttr<T_VALUE> pmAttrCtxt, String s); static String convertValueToString(PmAttr<T_VALUE> pmAttrCtxt, T_VALUE value); @Deprecated static T_VALUE convertBackingValue(PmAttrBase<T_VALUE, T_BACKING_VALUE> pmAttrCtxt, T_BACKING_VALUE backingValue); @Deprecated static T_BACKING_VALUE convertExternalValue(PmAttrBase<T_VALUE, T_BACKING_VALUE> pmAttrCtxt, T_VALUE value);  }
@Test public void testConvertValueToString() { assertEquals("3", PmAttrUtil.convertValueToString(testPm.i, Integer.valueOf(3))); assertEquals("A convert call does not influence the value of the used attribute instance.", null, testPm.i.getValue()); }