Package com.volantis.styling.impl.functions.counter

Examples of com.volantis.styling.impl.functions.counter.AlphabeticFormatterSelector


        // =====================================================================
        //   Test Expectations
        // =====================================================================
        CounterFormatterSelector selector =
                new AlphabeticFormatterSelector(formatterMock);
        CounterFormatter formatter;

        // Test zero.
        formatter = selector.selectFormatter(ListStyleTypeKeywords.LOWER_ALPHA,
                0);
        assertSame(DecimalFormatter.getDefaultInstance(), formatter);

        // Test negative.
        formatter = selector.selectFormatter(ListStyleTypeKeywords.LOWER_ALPHA,
                -9);
        assertSame(DecimalFormatter.getDefaultInstance(), formatter);
    }
View Full Code Here


        // =====================================================================
        //   Test Expectations
        // =====================================================================
        CounterFormatterSelector selector =
                new AlphabeticFormatterSelector(formatterMock);
        CounterFormatter formatter;

        // Test 1.
        formatter = selector.selectFormatter(ListStyleTypeKeywords.LOWER_ALPHA,
                1);
        assertSame(formatterMock, formatter);

        // Test 1000.
        formatter = selector.selectFormatter(ListStyleTypeKeywords.LOWER_ALPHA,
                1000);
        assertSame(formatterMock, formatter);
    }
View Full Code Here

TOP

Related Classes of com.volantis.styling.impl.functions.counter.AlphabeticFormatterSelector

Copyright © 2018 www.massapicom. 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.