Package org.apache.isis.applib.value

Examples of org.apache.isis.applib.value.Date


        assertEquals(new Date(2001, 1, 28), parsed);
    }

    @Test
    public void testParseEntryOfDaysBeforeToToday() throws Exception {
        final Date parsed = adapter.parseTextEntry(null, "-5");
        assertEquals(new Date(2003, 8, 12), parsed);
    }
View Full Code Here


        assertEquals(new Date(2003, 8, 12), parsed);
    }

    @Test
    public void testParseEntryOfKeywordToday() throws Exception {
        final Date parsed = adapter.parseTextEntry(date, "today");
        assertEquals(new Date(2003, 8, 17), parsed);
    }
View Full Code Here

        assertEquals(new Date(2003, 8, 17), parsed);
    }

    @Test
    public void testParseEntryOfWeeksAfterDate() throws Exception {
        final Date parsed = adapter.parseTextEntry(date, "+3w");
        assertEquals(new Date(2001, 2, 25), parsed);
    }
View Full Code Here

        assertEquals(new Date(2001, 2, 25), parsed);
    }

    @Test
    public void testParseEntryOfWeeksAfterToToday() throws Exception {
        final Date parsed = adapter.parseTextEntry(null, "+4w");
        assertEquals(new Date(2003, 9, 14), parsed);
    }
View Full Code Here

        assertEquals(new Date(2003, 9, 14), parsed);
    }

    @Test
    public void testParseEntryOfWeeksBeforeDate() throws Exception {
        final Date parsed = adapter.parseTextEntry(date, "-3w");
        assertEquals(new Date(2001, 1, 14), parsed);
    }
View Full Code Here

        assertEquals(new Date(2001, 1, 14), parsed);
    }

    @Test
    public void testParseEntryOfWeeksBeforeToToday() throws Exception {
        final Date parsed = adapter.parseTextEntry(null, "-4w");
        assertEquals(new Date(2003, 7, 20), parsed);
    }
View Full Code Here

        assertEquals(new Date(2003, 7, 20), parsed);
    }

    @Test
    public void testParseEntryOfMonthsAfterDate() throws Exception {
        final Date parsed = adapter.parseTextEntry(date, "+3m");
        assertEquals(new Date(2001, 5, 4), parsed);
    }
View Full Code Here

        assertEquals(new Date(2001, 5, 4), parsed);
    }

    @Test
    public void testParseEntryOfMonthsAfterToToday() throws Exception {
        final Date parsed = adapter.parseTextEntry(null, "+4m");
        assertEquals(new Date(2003, 12, 17), parsed);
    }
View Full Code Here

        assertEquals(new Date(2003, 12, 17), parsed);
    }

    @Test
    public void testParseEntryOfMonthsBeforeDate() throws Exception {
        final Date parsed = adapter.parseTextEntry(date, "-3m");
        assertEquals(new Date(2000, 11, 4), parsed);
    }
View Full Code Here

        assertEquals(new Date(2000, 11, 4), parsed);
    }

    @Test
    public void testParseEntryOfMonthsBeforeToToday() throws Exception {
        final Date parsed = adapter.parseTextEntry(null, "-4m");
        assertEquals(new Date(2003, 4, 17), parsed);
    }
View Full Code Here

TOP

Related Classes of org.apache.isis.applib.value.Date

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.