Package rabbit.data.access.model

Examples of rabbit.data.access.model.WorkspaceStorage


 
  @Before
  public void before() {
    count = 10;
    date = new LocalDate();
    workspace = new WorkspaceStorage(new Path(""), new Path(""));
    config = new LaunchConfigurationDescriptor("a", "b", "c");
    duration = new Duration(10);
    files = Sets.newHashSet(mock(IFile.class), mock(IFile.class));
  }
View Full Code Here


  private String pId;
 
  @Before
  public void before() {
    date = new LocalDate().minusDays(1);
    workspace = new WorkspaceStorage(new Path(""), new Path(""));
    duration = new Duration(10);
    pId = "ijk";
  }
View Full Code Here

  public void prepare() {
    taskId = new TaskId("id", new Date());
    file = mock(IFile.class);
    date = new LocalDate();
    duration = new Duration(10);
    workspace = new WorkspaceStorage(new Path(""), new Path(""));
  }
View Full Code Here

  @Before
  public void before() {
    element = mock(IJavaElement.class);
    date = new LocalDate();
    duration = new Duration(10);
    workspace = new WorkspaceStorage(new Path(""), new Path(""));
  }
View Full Code Here

  public void before() throws Exception {
    Constructor<Command> c = Command.class.getDeclaredConstructor(String.class);
    c.setAccessible(true);
    command = c.newInstance("id");
    date = new LocalDate();
    workspace = new WorkspaceStorage(new Path(""), new Path(""));
    count = 10;
  }
View Full Code Here

  @Before
  public void prepare() {
    file = mock(IFile.class);
    date = new LocalDate();
    duration = new Duration(10);
    workspace = new WorkspaceStorage(new Path(""), new Path(""));
  }
View Full Code Here

  private String partId;
 
  @Before
  public void before() {
    date = new LocalDate().minusDays(1);
    workspace = new WorkspaceStorage(new Path(""), new Path(""));
    duration = new Duration(10);
    partId = "abc";
  }
View Full Code Here

  public void setup() {
    root = ResourcesPlugin.getWorkspace().getRoot();
    fileHasParentFolder = root.getFile(new Path("/project/folder/file.txt"));
    duration = new Duration(100);
    date = new LocalDate().minusDays(1);
    ws = new WorkspaceStorage(new Path(".a"), new Path("/a"));

    data = mock(IFileData.class);
    given(data.get(IFileData.DATE)).willReturn(date);
    given(data.get(IFileData.DURATION)).willReturn(duration);
    given(data.get(IFileData.FILE)).willReturn(fileHasParentFolder);
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);
    IFile fileHasNoParentFolder = root.getFile(new Path("/project/file.txt"));

    ICategory[] categories = {
View Full Code Here

      }
    }).when(decoration).addSuffix(anyString());
   
    IPath workspace = Path.fromOSString("/opt/abc");
    IPath storage = Path.fromOSString(".home.abc");
    WorkspaceStorage ws = new WorkspaceStorage(storage, workspace);
   
    String expected = " [" + workspace.toOSString() + "]";
    decorator.decorate(ws, decoration);
    assertThat(args.size(), equalTo(1));
    assertThat(args.get(0), equalTo(expected));
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.