blob: 33b1792accbe718c594b83b9123e600117efac5e (
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.jupiter.api.Test;
import java.net.URI;
import static org.junit.jupiter.api.Assertions.assertEquals;
/**
* @author jonmv
*/
public class MavenRepositoryClientTest {
@Test
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")));
}
}
|