コード例 #1
0
  @Test
  public void simplePathIsUnchanged() {

    String path = "/project/directory/file.txt";

    assertThat(ResourceUtil.getResourcePathPermutations(path), is(singletonList(path)));
  }
コード例 #2
0
  @Test
  public void pathWithTagsIsCleaned() {

    String path = "/project/tags/1.0/directory/file.txt";
    String cleanPath = "/project/directory/file.txt";

    assertThat(ResourceUtil.getResourcePathPermutations(path), is(Arrays.asList(path, cleanPath)));
  }