Package com.google.eclipse.protobuf.ui.preferences.paths

Examples of com.google.eclipse.protobuf.ui.preferences.paths.DirectoryPath


    project = mock(IProject.class);
  }

  @Test public void should_parse_workspace_path() {
    when(project.getName()).thenReturn("test");
    DirectoryPath path = DirectoryPath.parse("${workspace_loc:/${project}/src}", project);
    assertThat(path.value(), equalTo("/test/src"));
    assertTrue(path.isWorkspacePath());
  }
View Full Code Here


    assertThat(path.value(), equalTo("/test/src"));
    assertTrue(path.isWorkspacePath());
  }

  @Test public void should_parse_workspace_path_with_null_IProject() {
    DirectoryPath path = DirectoryPath.parse("${workspace_loc:/test/src}", null);
    assertThat(path.value(), equalTo("/test/src"));
    assertTrue(path.isWorkspacePath());
  }
View Full Code Here

    assertThat(path.value(), equalTo("/test/src"));
    assertTrue(path.isWorkspacePath());
  }

  @Test public void should_parse_file_system_path() {
    DirectoryPath path = DirectoryPath.parse("/test/src", project);
    assertThat(path.value(), equalTo("/test/src"));
    assertFalse(path.isWorkspacePath());
  }
View Full Code Here

TOP

Related Classes of com.google.eclipse.protobuf.ui.preferences.paths.DirectoryPath

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.