@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"))); }
@Test public void testLookupNotFound() throws Exception { artifactVersion = new ArtifactVersion(ARTIFACT, "1.2-SNAPSHOT"); assertThat(repository.lookup(artifactVersion), CoreMatchers.<Object>nullValue()); }