Package net.greghaines.jesque.utils

Examples of net.greghaines.jesque.utils.CompositeDateFormat.format()


    }

    @Test
    public void testFormat() {
        final DateFormat dateFormat = new CompositeDateFormat();
        Assert.assertEquals("2013-03-08T02:26:05.234+0000", dateFormat.format(date));
    }

    private static void assertWithinASecond(final Date expected, final Date actual) {
        final double delta = expected.getTime() - actual.getTime();
        final String msg = "expected=" + expected + " actual=" + actual + " delta=" + delta;
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.