Examples of WorkspaceStorage


Examples of rabbit.data.access.model.WorkspaceStorage

    assertThat(toString(actual, expected), actual, equalTo(expected));
  }

  @Override
  public void shouldCorrectlyBuildMultiplePaths() {
    WorkspaceStorage ws2 = new WorkspaceStorage(new Path(".b"), null);
    LocalDate date2 = date.minusDays(2);
    Duration duration2 = duration.withMillis(10000);
    IFile fileHasNoParentFolder = root.getFile(new Path("/project/file.txt"));
    TaskId taskIdForInvalid = new TaskId(
        validTask.getHandleIdentifier(), new Date());
View Full Code Here

Examples of rabbit.data.access.model.WorkspaceStorage

  @Before
  public void setup() {
    duration = new Duration(1024);
    date = new LocalDate().minusDays(1);
    ws = new WorkspaceStorage(new Path(".a"), new Path("/a"));
    method = (IMethod) JavaCore.create(methodId);

    data = mock(IJavaData.class);
    given(data.get(IJavaData.DATE)).willReturn(date);
    given(data.get(IJavaData.DURATION)).willReturn(duration);
View Full Code Here

Examples of rabbit.data.access.model.WorkspaceStorage

    assertThat(toString(actual, expected), actual, equalTo(expected));
  }

  @Override
  public void shouldCorrectlyBuildMultiplePaths() {
    WorkspaceStorage ws2 = new WorkspaceStorage(new Path(".b"), null);
    LocalDate date2 = date.minusDays(2);
    IMethod method2 = (IMethod) JavaCore
        .create("=Proj2/src2<com.example2{My.java[My~getDefault");
    Duration duration2 = duration.minus(100);
View Full Code Here

Examples of rabbit.data.access.model.WorkspaceStorage

public class SessionDataTest {

  @Test
  public void shouldReturnTheDate() {
    LocalDate date = new LocalDate();
    WorkspaceStorage ws = new WorkspaceStorage(new Path(""), new Path(""));
    Duration duration = new Duration(10);
    assertThat(create(date, ws, duration).get(ISessionData.DATE), is(date));
  }
View Full Code Here

Examples of rabbit.data.access.model.WorkspaceStorage

  }
 
  @Test
  public void shouldReturnTheDuration() {
    LocalDate date = new LocalDate();
    WorkspaceStorage ws = new WorkspaceStorage(new Path(""), new Path(""));
    Duration dur = new Duration(10);
    assertThat(create(date, ws, dur).get(ISessionData.DURATION), is(dur));
  }
View Full Code Here

Examples of rabbit.data.access.model.WorkspaceStorage

  }

  @Test
  public void shouldReturnNullIfKeyIsNull() {
    LocalDate date = new LocalDate();
    WorkspaceStorage ws = new WorkspaceStorage(new Path(""), new Path(""));
    Duration dur = new Duration(10);
    assertThat(
        create(date, ws, dur).get(null),
        is(nullValue()));
  }
View Full Code Here

Examples of rabbit.data.access.model.WorkspaceStorage

  }

  @Test
  public void shouldReturnTheWorkspace() {
    LocalDate date = new LocalDate();
    WorkspaceStorage ws = new WorkspaceStorage(new Path(""), new Path(""));
    Duration duration = new Duration(10);
    assertThat(create(date, ws, duration).get(ISessionData.WORKSPACE), is(ws));
  }
View Full Code Here

Examples of rabbit.data.access.model.WorkspaceStorage

  }
 
  @Test(expected = NullPointerException.class)
  public void shouldThrowNullPointerExceptionIfConstructedWithoutADate() {
    LocalDate date = null;
    WorkspaceStorage ws = new WorkspaceStorage(new Path(""), new Path(""));
    Duration duration = new Duration(0);
    create(date, ws, duration);
  }
View Full Code Here

Examples of rabbit.data.access.model.WorkspaceStorage

  }
 
  @Test(expected = NullPointerException.class)
  public void shouldThrowNullPointerExceptionIfConstructedWithoutADuration() {
    LocalDate date = new LocalDate();
    WorkspaceStorage ws = new WorkspaceStorage(new Path(""), new Path(""));
    Duration duration = null;
    create(date, ws, duration);
  }
View Full Code Here

Examples of rabbit.data.access.model.WorkspaceStorage

  }
 
  @Test(expected = NullPointerException.class)
  public void shouldThrowNullPointerExceptionIfConstructedWithoutAWorkspace() {
    LocalDate date = new LocalDate();
    WorkspaceStorage ws = null;
    Duration duration = new Duration(0);
    create(date, ws, duration);
  }
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.