Ejemplo n.º 1
0
  @Test
  public void testLookupExists() throws Exception {
    artifactVersion = new ArtifactVersion(ARTIFACT, "1.2");

    // TODO: this test is probably broken on windows, so fix it
    assertThat(
        repository.lookup(artifactVersion),
        equalTo(
            new URL(
                "file:"
                    + repositoryDirectory.getAbsolutePath()
                    + "/com/bygg/bygg-test-artifact/1.2/bygg-test-artifact-1.2.jar")));
  }
Ejemplo n.º 2
0
  @Test
  public void testLookupNotFound() throws Exception {
    artifactVersion = new ArtifactVersion(ARTIFACT, "1.2-SNAPSHOT");

    assertThat(repository.lookup(artifactVersion), CoreMatchers.<Object>nullValue());
  }