Examples of MavenArtifact


Examples of org.drools.guvnor.client.rpc.MavenArtifact

        assertFalse(serviceConfig.equals(new ServiceConfig("70", excludedArtifacts, kbases)));
        assertFalse(serviceConfig.hashCode() == new ServiceConfig("70", excludedArtifacts, kbases).hashCode());

        serviceConfig = new ServiceConfig("70", excludedArtifacts, kbases);
        serviceConfig.removeExcludedArtifact(new MavenArtifact("org.drools:knowledge-api:jar:5.5.0-SNAPSHOT:compile"));
        assertFalse(serviceConfig.equals(new ServiceConfig("70", excludedArtifacts, kbases)));
        assertFalse(serviceConfig.hashCode() == new ServiceConfig("70", excludedArtifacts, kbases).hashCode());

        serviceConfig = new ServiceConfig("70", excludedArtifacts, kbases);
        serviceConfig.removeKBase("kbase2");
View Full Code Here

Examples of org.drools.guvnor.client.rpc.MavenArtifact

    @Test
    public void testAddRemoveExcludedArtifacts() {
        final ServiceConfig serviceConfig = new ServiceConfig(null, null, null);

        serviceConfig.addExcludedArtifact(new MavenArtifact("org.drools:knowledge-api:jar:5.5.0-SNAPSHOT:compile"));
        serviceConfig.addExcludedArtifact(new MavenArtifact("org.drools:knowledge-api:jar:5.5.0-SNAPSHOT:compile"));
        serviceConfig.addExcludedArtifact(null);
        assertEquals(1, serviceConfig.getExcludedArtifacts().size());

        serviceConfig.removeExcludedArtifact(new MavenArtifact("org.drools:knowledge-api:jar:5.5.0-SNAPSHOT:compile"));
        assertEquals(0, serviceConfig.getExcludedArtifacts().size());

        serviceConfig.setExcludedArtifacts(excludedArtifacts);
        serviceConfig.setExcludedArtifacts(null);
        assertEquals(2, serviceConfig.getExcludedArtifacts().size());

        serviceConfig.removeExcludedArtifact(new MavenArtifact("org.drools:knowledge-api:jar:5.5.0-SNAPSHOT:compile"));
        serviceConfig.removeExcludedArtifact(new MavenArtifact("org.drools:knowledge-aaaapi:jar:5.5.0-SNAPSHOT:compile"));
        serviceConfig.removeExcludedArtifact(null);
        assertEquals(1, serviceConfig.getExcludedArtifacts().size());

        serviceConfig.setExcludedArtifacts(new ArrayList<MavenArtifact>());
        assertEquals(0, serviceConfig.getExcludedArtifacts().size());

        serviceConfig.addExcludedArtifact(new MavenArtifact("org.drools:knowledge-aaaapi:jar:5.5.0-SNAPSHOT:compile"));
        serviceConfig.addExcludedArtifacts(excludedArtifacts);
        serviceConfig.addExcludedArtifacts(new ArrayList<MavenArtifact>());
        serviceConfig.addExcludedArtifacts(null);
        assertEquals(3, serviceConfig.getExcludedArtifacts().size());
View Full Code Here

Examples of org.drools.guvnor.client.rpc.MavenArtifact

        final Collection<String> repositories = new ArrayList<String>() {{
            add(getURLtoLocalUserMavenRepo());
        }};

        final Collection<MavenArtifact> dependencies = new ArrayList<MavenArtifact>() {{
            add(new MavenArtifact("log4j:log4j:jar:1.2.16:compile"));
            add(new MavenArtifact("jdom:jdom:jar:1.0:compile"));
        }};

        buildCache(repositories, dependencies);
    }
View Full Code Here

Examples of org.drools.guvnor.client.rpc.MavenArtifact

        if (source.excludedArtifacts == null) {
            this.excludedArtifacts = new HashSet<MavenArtifact>();
        } else {
            this.excludedArtifacts = new HashSet<MavenArtifact>(source.excludedArtifacts.size());
            for (final MavenArtifact excludedArtifact : source.excludedArtifacts) {
                this.excludedArtifacts.add(new MavenArtifact(excludedArtifact));
            }
        }

        if (source.kbases == null) {
            this.kbases = new HashMap<String, ServiceKBaseConfig>();
View Full Code Here

Examples of org.drools.guvnor.client.rpc.MavenArtifact

        if (excludedArtifacts == null) {
            this.excludedArtifacts = new HashSet<MavenArtifact>();
        } else {
            this.excludedArtifacts = new HashSet<MavenArtifact>(excludedArtifacts.size());
            for (final MavenArtifact excludedArtifact : excludedArtifacts) {
                this.excludedArtifacts.add(new MavenArtifact(excludedArtifact));
            }
        }

        if (kbases == null) {
            this.kbases = new HashMap<String, ServiceKBaseConfig>();
View Full Code Here

Examples of org.drools.guvnor.client.rpc.MavenArtifact

        final Collection<String> repositories = new ArrayList<String>() {{
            add(getURLtoLocalUserMavenRepo());
        }};

        final Collection<MavenArtifact> dependencies = new ArrayList<MavenArtifact>() {{
            add(new MavenArtifact("log4j:log4j:jar:1.2.16:compile"));
            add(new MavenArtifact("jdom:jdom:jar:1.0:compile"));
        }};

        buildCache(repositories, dependencies);
    }
View Full Code Here

Examples of org.drools.guvnor.client.rpc.MavenArtifact

        if (source.excludedArtifacts == null) {
            this.excludedArtifacts = new HashSet<MavenArtifact>();
        } else {
            this.excludedArtifacts = new HashSet<MavenArtifact>(source.excludedArtifacts.size());
            for (final MavenArtifact excludedArtifact : source.excludedArtifacts) {
                this.excludedArtifacts.add(new MavenArtifact(excludedArtifact));
            }
        }

        if (source.kbases == null) {
            this.kbases = new HashMap<String, ServiceKBaseConfig>();
View Full Code Here

Examples of org.drools.guvnor.client.rpc.MavenArtifact

        if (excludedArtifacts == null) {
            this.excludedArtifacts = new HashSet<MavenArtifact>();
        } else {
            this.excludedArtifacts = new HashSet<MavenArtifact>(excludedArtifacts.size());
            for (final MavenArtifact excludedArtifact : excludedArtifacts) {
                this.excludedArtifacts.add(new MavenArtifact(excludedArtifact));
            }
        }

        if (kbases == null) {
            this.kbases = new HashMap<String, ServiceKBaseConfig>();
View Full Code Here

Examples of org.drools.guvnor.client.rpc.MavenArtifact

        assertNotNull(result.getV1());
        assertNotNull(result.getV2());
        assertEquals(1, result.getV1().size());
        assertEquals(1, result.getV2().size());

        result.getV1().iterator().next().equals(new MavenArtifact("org.drools:knowledge-api:jar:5.4.0-SNAPSHOT:compile"));
        result.getV2().iterator().next().equals(new MavenArtifact("org.drools:knowledge-api:jar:5.4.0-SNAPSHOT:compile"));
    }
View Full Code Here

Examples of org.drools.guvnor.client.rpc.MavenArtifact

        assertNotNull(result.getV1());
        assertNotNull(result.getV2());
        assertEquals(2, result.getV1().size());
        assertEquals(2, result.getV2().size());

        result.getV1().iterator().next().equals(new MavenArtifact("org.drools:knowledge-api:jar:5.4.0-SNAPSHOT:compile"));
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.