Search in sources :

Example 6 with MirrorOptions

use of org.eclipse.tycho.p2.tools.mirroring.facade.MirrorOptions in project tycho by eclipse.

the class MirrorStandaloneTest method testMirrorSpecificUnitSpecificVersion.

@Test
public void testMirrorSpecificUnitSpecificVersion() throws Exception {
    subject.mirrorStandalone(e342PlusFragmentsRepo(), destinationRepo, Collections.singletonList(new IUDescription("org.eclipse.core.runtime", "3.4.0.v20080512")), new MirrorOptions(), targetFolder);
    assertEquals(1, getMirroredBundleFiles().length);
    assertTrue(repoFile(destinationRepo, "plugins/org.eclipse.core.runtime_3.4.0.v20080512.jar").exists());
}
Also used : IUDescription(org.eclipse.tycho.p2.tools.mirroring.facade.IUDescription) MirrorOptions(org.eclipse.tycho.p2.tools.mirroring.facade.MirrorOptions) Test(org.junit.Test)

Aggregations

MirrorOptions (org.eclipse.tycho.p2.tools.mirroring.facade.MirrorOptions)5 Test (org.junit.Test)5 IUDescription (org.eclipse.tycho.p2.tools.mirroring.facade.IUDescription)3 File (java.io.File)1 FileFilter (java.io.FileFilter)1 IStatus (org.eclipse.core.runtime.IStatus)1 IProvisioningAgent (org.eclipse.equinox.p2.core.IProvisioningAgent)1 ProvisionException (org.eclipse.equinox.p2.core.ProvisionException)1 FacadeException (org.eclipse.tycho.p2.tools.FacadeException)1 MirrorApplicationServiceTest.repoFile (org.eclipse.tycho.p2.tools.mirroring.MirrorApplicationServiceTest.repoFile)1