blob: 25dd72ae6220891ad170fe29883b34239568e560 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
// Copyright Yahoo. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
package com.yahoo.vespa.hosted.controller.versions;
import com.yahoo.vespa.hosted.controller.api.integration.maven.ArtifactId;
import org.junit.Test;
import java.net.URI;
import static org.junit.Assert.assertEquals;
/**
* @author jonmv
*/
public class MavenRepositoryClientTest {
@Test
public void testUri() {
assertEquals(URI.create("https://domain:123/base/group/id/artifact-id/maven-metadata.xml"),
MavenRepositoryClient.withArtifactPath(URI.create("https://domain:123/base/"),
new ArtifactId("group.id", "artifact-id")));
}
}
|