Package org.candlepin.model

Examples of org.candlepin.model.DistributorVersionCurator


        verify(oc).merge(any(Owner.class));
    }

    @Test
    public void importDistributorVersionCreate() throws Exception {
        DistributorVersionCurator dvc = mock(DistributorVersionCurator.class);
        Importer i = new Importer(null, null, null, null, null, null, null,
            null, null, null, null, null, null, i18n, dvc, null);
        File[] distVer = new File[1];
        distVer[0] = new File("target/test/resources/upstream/dist-ver.json");
View Full Code Here


        verify(dvc, never()).merge(any(DistributorVersion.class));
    }

    @Test
    public void importDistributorVersionUpdate() throws Exception {
        DistributorVersionCurator dvc = mock(DistributorVersionCurator.class);
        Importer i = new Importer(null, null, null, null, null, null, null,
            null, null, null, null, null, null, i18n, dvc, null);
        when(dvc.findByName("test-dist-ver")).thenReturn(
            new DistributorVersion("test-dist-ver"));
        File[] distVer = new File[1];
        distVer[0] = new File("target/test/resources/upstream/dist-ver.json");

        i.importDistributorVersions(distVer);
View Full Code Here

TOP

Related Classes of org.candlepin.model.DistributorVersionCurator

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.