Examples of toPropertyValue()


Examples of org.pentaho.reporting.engine.classic.core.util.beans.ArrayValueConverter.toPropertyValue()

  public void testArrayConversion() throws BeanException
  {
    final String[] array = { " "};
    final ArrayValueConverter c = new ArrayValueConverter(String.class, new StringValueConverter());
    final String s = c.toAttributeValue(array);
    final Object o = c.toPropertyValue(s);
    assertTrue(o instanceof String[]);
    final String[] strings = (String[]) o;
    assertEquals(strings.length, 1);
    assertEquals(strings[0], " ");
  }
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.util.beans.BasicStrokeValueConverter.toPropertyValue()

  public void testParse() throws BeanException
  {
    final BasicStroke b = new BasicStroke();
    BasicStrokeValueConverter c = new BasicStrokeValueConverter();
    final BasicStroke b2 = (BasicStroke) c.toPropertyValue(c.toAttributeValue(b));
    assertEquals(b, b2);
  }
}
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.