Package fi.luomus.commons.containers

Examples of fi.luomus.commons.containers.DateValue


      String actual = DateUtils.humanize(new DateValue(19, 9, 1), DateUtils.FI);
      assertEquals("1 vuosi 9 kuukautta 19 päivää", actual);
    }

    public void test___humanize_2() {
      String actual = DateUtils.humanize(new DateValue(2, 1, 2), DateUtils.FI);
      assertEquals("2 vuotta 1 kuukausi 2 päivää", actual);
    }
View Full Code Here


      String actual = DateUtils.humanize(new DateValue(2, 1, 2), DateUtils.FI);
      assertEquals("2 vuotta 1 kuukausi 2 päivää", actual);
    }

    public void test___humanize_3() {
      String actual = DateUtils.humanize(new DateValue(1, null, null), DateUtils.FI);
      assertEquals("1 päivä", actual);
    }
View Full Code Here

      String actual = DateUtils.humanize(new DateValue(1, null, null), DateUtils.FI);
      assertEquals("1 päivä", actual);
    }

    public void test___humanize_4() {
      String actual = DateUtils.humanize(new DateValue("1", "", "0"), DateUtils.FI);
      assertEquals("1 päivä", actual);
    }
View Full Code Here

      String actual = DateUtils.humanize(new DateValue("1", "", "0"), DateUtils.FI);
      assertEquals("1 päivä", actual);
    }

    public void test___humanize_5() {
      String actual = DateUtils.humanize(new DateValue(1, 1, 0), DateUtils.FI);
      assertEquals("1 kuukausi 1 päivä", actual);
    }
View Full Code Here

      String actual = DateUtils.humanize(new DateValue(1, 1, 0), DateUtils.FI);
      assertEquals("1 kuukausi 1 päivä", actual);
    }

    public void test___humanize_6() {
      String actual = DateUtils.humanize(new DateValue(0, 1, 3), DateUtils.FI);
      assertEquals("3 vuotta 1 kuukausi", actual);
    }
View Full Code Here

      String actual = DateUtils.humanize(new DateValue(0, 1, 3), DateUtils.FI);
      assertEquals("3 vuotta 1 kuukausi", actual);
    }

    public void test___humanize_to_years_months_days() {
      DateValue yearsMonthsDays = DateUtils.getYearsMonthsDays(1001);
      String actual = DateUtils.humanize(yearsMonthsDays, DateUtils.FI);
      assertEquals("2 vuotta 9 kuukautta 1 päivä", actual);
    }
View Full Code Here

      String actual = DateUtils.humanize(((long) (1001 * 24 * 60 * 60)) * 1000, DateUtils.FI);
      assertEquals("2 vuotta 9 kuukautta 1 päivä", actual);
    }

    public void test___humanize_en() {
      String actual = DateUtils.humanize(new DateValue(19, 9, 1), DateUtils.EN);
      assertEquals("1 year 9 months 19 days", actual);
    }
View Full Code Here

      String actual = DateUtils.humanize(new DateValue(19, 9, 1), DateUtils.EN);
      assertEquals("1 year 9 months 19 days", actual);
    }

    public void test___humanize_2_en() {
      String actual = DateUtils.humanize(new DateValue(2, 1, 2), DateUtils.EN);
      assertEquals("2 years 1 month 2 days", actual);
    }
View Full Code Here

      String actual = DateUtils.humanize(new DateValue(2, 1, 2), DateUtils.EN);
      assertEquals("2 years 1 month 2 days", actual);
    }

    public void test___humanize_3_en() {
      String actual = DateUtils.humanize(new DateValue(1, null, null), DateUtils.EN);
      assertEquals("1 day", actual);
    }
View Full Code Here

      String actual = DateUtils.humanize(new DateValue(1, null, null), DateUtils.EN);
      assertEquals("1 day", actual);
    }

    public void test___humanize_4_en() {
      String actual = DateUtils.humanize(new DateValue("1", "", "0"), DateUtils.EN);
      assertEquals("1 day", actual);
    }
View Full Code Here

TOP

Related Classes of fi.luomus.commons.containers.DateValue

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.