FileDocCategorySizeDatePackage
FormattableTest.javaAPI DocAndroid 1.5 API2267Wed May 06 22:41:04 BST 2009org.apache.harmony.luni.tests.java.util

FormattableTest

public class FormattableTest extends TestCase

Fields Summary
Constructors Summary
Methods Summary
public voidtestFormatTo()

        Formatter fmt = new Formatter();
        Mock_Formattable mf = new Mock_Formattable();
        
        assertTrue(fmt.format("%1.1s", mf).toString().equals("single precision "));
        assertTrue(fmt.format("%2.1s", mf).toString().equals("single precision single precision "));
        assertTrue(fmt.format("%2.2s", mf).toString().equals("single precision single precision double precision "));
        assertTrue(mf.isFormatToCalled());