Examples of LocalDate


Examples of org.joda.time.LocalDate

    assertThat(accessor.getData(start, end).isEmpty(), is(true));
  }

  @Test
  public void getDataShouldReturnTheCorrectDataForMultipleDays() {
    LocalDate start = new LocalDate(2010, 1, 1);
    LocalDate end = new LocalDate(2010, 1, 3);
    E e1 = createElement();
    E e2 = createElement();

    S list1 = createCategory();
    list1.setDate(toXmlDate(start));
View Full Code Here

Examples of org.joda.time.LocalDate

  }

  @Test
  public void getDataShouldReturnTheCorrectDataForTheSameDate()
      throws Exception {
    LocalDate date = new LocalDate();
    E element = createElement();
    File file = accessor.getDataStore().getDataFile(date);
    writeData(element, date, file);

    Collection<T> data = accessor.getData(date, date);
View Full Code Here

Examples of org.joda.time.LocalDate

    assertValues(element, date, ws, data.iterator().next());
  }

  @Test
  public void getDataShouldReturnTheCorrectDataStoredForAnotherWorkspace() {
    LocalDate date = new LocalDate().minusDays(1);
    E element = createElement();

    // Go to the root of the storage folder for current workspace:
    File file = accessor.getDataStore().getDataFile(date).getParentFile();
    // Go to the parent folder of the storage folder for current workspace:
View Full Code Here

Examples of org.joda.time.LocalDate

    assertValues(element, date, ws, data.iterator().next());
  }

  @Test(expected = NullPointerException.class)
  public void getDataShouldThrowNullPointerExceptionIfEndDateIsNull() {
    accessor.getData(new LocalDate(), null);
  }
View Full Code Here

Examples of org.joda.time.LocalDate

    accessor.getData(new LocalDate(), null);
  }

  @Test(expected = NullPointerException.class)
  public void getDataShouldThrowNullPointerExceptionIfStartDateIsNull() {
    accessor.getData(null, new LocalDate());
  }
View Full Code Here

Examples of org.joda.time.LocalDate

    assertSame(getElements(category), accessor.getElements(category));
  }

  @Test
  public void shouldCreateADataNodeCorrectly() throws Exception {
    LocalDate date = new LocalDate();
    WorkspaceStorage ws = new WorkspaceStorage(new Path(""), new Path("/a"));
    E expected = createElement();
    T actual = accessor.createDataNode(date, ws, expected);
    assertValues(expected, date, ws, actual);
  }
View Full Code Here

Examples of org.threeten.bp.LocalDate

    // adjust()
    //-----------------------------------------------------------------------
    @Test
    public void test_adjustDate() {
        MonthDay test = MonthDay.of(6, 30);
        LocalDate date = LocalDate.of(2007, 1, 1);
        assertEquals(test.adjustInto(date), LocalDate.of(2007, 6, 30));
    }
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.