Search in sources :

Example 16 with MavenRepositoryCoordinates

use of org.eclipse.tycho.p2.repository.MavenRepositoryCoordinates in project tycho by eclipse.

the class GAVArtifactDescriptorTest method testDeserializationWithClassifierAndExt.

@Test
public void testDeserializationWithClassifierAndExt() {
    ArtifactDescriptor input = createP2Descriptor();
    setGAVProperties(input);
    input.setProperty("maven-classifier", OTHER_CLASSIFIER);
    input.setProperty("maven-extension", OTHER_EXTENSION);
    subject = new GAVArtifactDescriptor(input);
    assertThat(subject.getMavenCoordinates(), is(new MavenRepositoryCoordinates(TEST_GAV, OTHER_CLASSIFIER, OTHER_EXTENSION)));
}
Also used : MavenRepositoryCoordinates(org.eclipse.tycho.p2.repository.MavenRepositoryCoordinates) IArtifactDescriptor(org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor) ArtifactDescriptor(org.eclipse.equinox.p2.repository.artifact.spi.ArtifactDescriptor) Test(org.junit.Test)

Aggregations

MavenRepositoryCoordinates (org.eclipse.tycho.p2.repository.MavenRepositoryCoordinates)16 Test (org.junit.Test)12 IArtifactDescriptor (org.eclipse.equinox.p2.repository.artifact.IArtifactDescriptor)8 ArtifactDescriptor (org.eclipse.equinox.p2.repository.artifact.spi.ArtifactDescriptor)8 GAV (org.eclipse.tycho.p2.repository.GAV)2 ModuleArtifactDescriptor (org.eclipse.tycho.repository.module.ModuleArtifactRepository.ModuleArtifactDescriptor)2 ProvisionException (org.eclipse.equinox.p2.core.ProvisionException)1 ClassifierAndExtension (org.eclipse.tycho.repository.publishing.WriteSessionContext.ClassifierAndExtension)1