public void testFormat1() throws ChartException { assertEquals(null, ValueFormatter.format(null, null, null, null)); assertEquals("ABC", ValueFormatter.format("ABC", null, null, null)); assertEquals("12.2", ValueFormatter.format(NumberDataElementImpl.create(12.2), null,null ,null)); assertEquals(Calendar.getInstance().toString(), ValueFormatter.format(DateTimeDataElementImpl.create( Calendar.getInstance()), null, null, null));
public void testFormat1( ) throws ChartException { assertEquals( null, ValueFormatter.format( null, null, null, null ) ); assertEquals( "ABC", ValueFormatter.format( "ABC", null, null, null ) ); assertEquals( "12.2", ValueFormatter.format( NumberDataElementImpl.create( 12.2 ), null, null, null ) );
	public void testFormat1() throws ChartException {		assertEquals(null, ValueFormatter.format(null, null, null, null));		assertEquals("ABC", ValueFormatter.format("ABC", null, null, null));//$NON-NLS-1$ //$NON-NLS-2$		assertEquals("12.2", ValueFormatter.format(NumberDataElementImpl.create(12.2), null,null ,null));//$NON-NLS-1$ 		assertEquals(Calendar.getInstance().toString(), ValueFormatter.format(DateTimeDataElementImpl.create(				Calendar.getInstance()), null, null, null));	}