Examples of LocalDate


Examples of org.joda.time.LocalDate

*/
public class DateLabelProviderTest extends NullLabelProviderTest {

  @Test
  public void getTextShouldReturnTheLongDateFormatOfTheDate() {
    LocalDate date = new LocalDate();
    String expected = DateTimeFormat.longDate().print(date);
    String actual = provider.getText(date);
    assertThat(actual, equalTo(expected));
  }
View Full Code Here

Examples of org.joda.time.LocalDate

    assertThat(actual, equalTo(expected));
  }

  @Test
  public void getImageShouldReturnANonnullImageForADate() {
    assertThat(provider.getImage(new LocalDate()), notNullValue());
  }
View Full Code Here

Examples of org.joda.time.LocalDate

  }

  @Override
  protected TaskFileEventListType createCategory() {
    TaskFileEventListType list = new TaskFileEventListType();
    list.setDate(DatatypeUtil.toXmlDate(new LocalDate()));
    return list;
  }
View Full Code Here

Examples of org.joda.time.LocalDate

  }

  @Override
  protected TaskFileEventType createElement() {
    TaskIdType id = new TaskIdType();
    id.setCreationDate(DatatypeUtil.toXmlDate(new LocalDate()));
    id.setHandleId("ok");

    TaskFileEventType type = new TaskFileEventType();
    type.setDuration(10);
    type.setFilePath("/project/folder/file.txt");
View Full Code Here

Examples of org.joda.time.LocalDate

  public void testMerge() throws Exception {
    long duration1 = 34;
    long duration2 = 2398;
    String fileId = "124";
    String handleId = "abc";
    LocalDate date = new LocalDate(1999, 1, 1);
   
    TaskIdType id1 = new TaskIdType();
    id1.setHandleId(handleId);
    id1.setCreationDate(DatatypeUtil.toXmlDate(date));
   
View Full Code Here

Examples of org.joda.time.LocalDate

  public void testMerge_notModifyParams() throws Exception {
    long duration1 = 34;
    long duration2 = 2398;
    String fileId = "124";
    String handleId = "abc";
    LocalDate date = new LocalDate(1999, 1, 1);
   
    TaskIdType id1 = new TaskIdType();
    id1.setHandleId(handleId);
    id1.setCreationDate(DatatypeUtil.toXmlDate(date));
   
View Full Code Here

Examples of org.joda.time.LocalDate

  }

  @Override
  protected TaskFileEventType createTargetType() {
    TaskIdType id = new TaskIdType();
    id.setCreationDate(DatatypeUtil.toXmlDate(new LocalDate()));
    id.setHandleId("aTaskId");
   
    TaskFileEventType type = new TaskFileEventType();
    type.setDuration(129);
    type.setFilePath("helloWorld");
View Full Code Here

Examples of org.joda.time.LocalDate

  }

  @Override
  protected TaskFileEventType createTargetTypeDiff() {
    TaskIdType id = new TaskIdType();
    id.setCreationDate(DatatypeUtil.toXmlDate(new LocalDate(1999, 1, 1)));
    id.setHandleId("1.2.3.4.5.6.7");
   
    TaskFileEventType type = new TaskFileEventType();
    type.setDuration(12119);
    type.setFilePath("0.9.8.7.6.");
View Full Code Here

Examples of org.joda.time.LocalDate

    assertSame(getCategories(t), accessor.getCategories(t));
  }

  @Test
  public void getDataShouldNotReturnTheDataOutsideOfTheDates() throws Exception {
    LocalDate date = new LocalDate();
    writeData(date);
    Collection<T> data = accessor.getData(date.plusDays(1), date.plusDays(2));
    assertThat(data.size(), is(0));
  }
View Full Code Here

Examples of org.joda.time.LocalDate

    assertThat(data.size(), is(0));
  }

  @Test
  public void getDataShouldReturnAnEmptyCollectionIfNoData() {
    LocalDate start = new LocalDate().plusDays(100);
    LocalDate end = start.plusDays(2);
    assertThat(accessor.getData(start, end), is(notNullValue()));
    assertThat(accessor.getData(start, end).isEmpty(), is(true));
  }
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.