Package rabbit.data.access.model

Examples of rabbit.data.access.model.WorkspaceStorage


      }
    }).when(decoration).addSuffix(anyString());
   
    IPath workspace = null;
    IPath storage = Path.fromOSString(".home.abc");
    WorkspaceStorage ws = new WorkspaceStorage(storage, workspace);
   
    String fileSeparator = System.getProperty("file.separator");
    String expected = " [may be " + storage.lastSegment().replace(".", fileSeparator) + "?]";
    decorator.decorate(ws, decoration);
    assertThat(args.size(), equalTo(1));
View Full Code Here


  @Before
  public void setup() {
    duration = new Duration(100);
    view = PlatformUI.getWorkbench().getViewRegistry().getViews()[0];
    date = new LocalDate().minusDays(1);
    ws = new WorkspaceStorage(new Path(".a"), new Path("/a"));

    data = mock(IPartData.class);
    given(data.get(IPartData.DATE)).willReturn(date);
    given(data.get(IPartData.DURATION)).willReturn(duration);
    given(data.get(IPartData.PART_ID)).willReturn(view.getId());
View Full Code Here

    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);
    IEditorDescriptor editor = PlatformUI.getWorkbench().getEditorRegistry()
        .getDefaultEditor("1.txt");
View Full Code Here

  @Before
  public void setup() {
    date = new LocalDate().minusDays(1);
    duration = new Duration(System.currentTimeMillis());
    ws = new WorkspaceStorage(new Path(".a"), new Path("/a"));

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

    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);

    ICategory[] categories = {Category.WORKSPACE, Category.DATE};
    List<TreePath> expected = asList(
View Full Code Here

  public void setup() {
    duration = new Duration(100);
    perspective = PlatformUI.getWorkbench().getPerspectiveRegistry()
        .getPerspectives()[0];
    date = new LocalDate().minusDays(1);
    ws = new WorkspaceStorage(new Path(".a"), new Path("/a"));

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

    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);
    IPerspectiveDescriptor p2 = PlatformUI.getWorkbench()
        .getPerspectiveRegistry().getPerspectives()[1];
View Full Code Here

    count = 10;
    date = new LocalDate().minusDays(1);
    duration = new Duration(101);
    launch = new LaunchName("hello", type.getIdentifier());
    ws = new WorkspaceStorage(new Path("/a"), new Path(".a"));
    fileHasParent = root.getFile(new Path("/project/folder/folder1/file.txt"));
    fileHasNoParent = root.getFile(new Path("/project/file.txt"));
    configDes = new LaunchConfigurationDescriptor(
        launch.getLaunchName(), mode.getIdentifier(), type.getIdentifier());
View Full Code Here

  @Before
  public void setup() {
    command = newCommand("hello");
    count = 19;
    date = new LocalDate().minusDays(1);
    ws = new WorkspaceStorage(new Path(".a"), new Path("/a"));

    data = mock(ICommandData.class);
    given(data.get(ICommandData.DATE)).willReturn(date);
    given(data.get(ICommandData.COUNT)).willReturn(count);
    given(data.get(ICommandData.COMMAND)).willReturn(command);
View Full Code Here

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

  @Override
  public void shouldCorrectlyBuildMultiplePaths() {
    WorkspaceStorage ws2 = new WorkspaceStorage(new Path(".b"), null);
    LocalDate date2 = date.minusDays(2);
    Command command2 = newCommand("abc");
    int count2 = count + 10;

    ICategory[] categories = {Category.WORKSPACE, Category.COMMAND};
View Full Code Here

TOP

Related Classes of rabbit.data.access.model.WorkspaceStorage

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.