Package org.displaytag.decorator

Examples of org.displaytag.decorator.DateColumnDecorator


        Assert.assertEquals("Wrong number of tables.", 1, tables.length);

        Assert.assertEquals(
            "Expected decorated value not found.",
            new DateColumnDecorator().decorate(KnownTypes.TIME_VALUE, null, null),
            tables[0].getCellAsText(1, 0));
    }
View Full Code Here


        Assert.assertEquals("Wrong number of tables.", 2, tables.length);

        Assert.assertEquals(
            "Expected decorated value not found.",
            new DateColumnDecorator().decorate(KnownTypes.TIME_VALUE, null, null),
            tables[0].getCellAsText(1, 0));

        Assert.assertEquals(
            "Expected decorated value not found.",
            KnownTypes.TIME_VALUE.toString(),
View Full Code Here

        Assert.assertEquals("Expected a different content type.", "text/xml", response.getContentType());
        Assert.assertFalse(
            "Export should not be decorated",
            StringUtils.contains(
                response.getText(),
                (String) new DateColumnDecorator().decorate(KnownTypes.TIME_VALUE, null, null)));
        Assert.assertTrue(
            "Export should not be decorated",
            StringUtils.contains(response.getText(), KnownTypes.TIME_VALUE.toString()));
    }
View Full Code Here

TOP

Related Classes of org.displaytag.decorator.DateColumnDecorator

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.