aboutsummaryrefslogtreecommitdiffstats
path: root/controller-server/src/test/java/com/yahoo/vespa/hosted/controller/versions/MavenRepositoryClientTest.java
blob: 1d9a98df0dfb18df1fbe98bf02f121f9c6c576ec (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 Vespa.ai. 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")));
    }

}