Examples of XmlDeploymentArtifact


Examples of org.apache.ace.deployment.provider.repositorybased.BaseRepositoryHandler.XmlDeploymentArtifact

        List<XmlDeploymentArtifact>[] artifacts = handler.getArtifacts();
        assert artifacts.length == 1 : "Expected a single artifact to be found!";
        assert artifacts[0].size() == 1 : "Expected a single artifact to be found!";

        XmlDeploymentArtifact artifact1 = artifacts[0].get(0);
        assert new URL("file:///bundle1").equals(artifact1.getUrl()) : "Expected 'file:///bundle1' URL to be found!";
        assert artifact1.getDirective().size() == 2 : "Expected two directives to be found!";
        assert "bundle1".equals(artifact1.getDirective().get(KEY_SYMBOLICNAME)) : "Expected correct symbolic name to be found!";
        assert "1.0.0".equals(artifact1.getDirective().get(KEY_VERSION)) : "Expected correct bundle version to be found!";
    }
View Full Code Here

Examples of org.apache.ace.deployment.provider.repositorybased.BaseRepositoryHandler.XmlDeploymentArtifact

        List<XmlDeploymentArtifact>[] artifacts = handler.getArtifacts();
        assert artifacts.length == 1 : "Expected two artifacts to be found!";
        assert artifacts[0].size() == 2 : "Expected two artifacts to be found!";

        XmlDeploymentArtifact artifact1 = artifacts[0].get(0);
        assert new URL("file:///bundle4.1").equals(artifact1.getUrl()) : "Expected 'file:///bundle4.1' URL to be found!";
        assert artifact1.getDirective().size() == 2 : "Expected two directives to be found!";
        assert "bundle4.1".equals(artifact1.getDirective().get(KEY_SYMBOLICNAME)) : "Expected correct symbolic name to be found!";
        assert "4.1.0".equals(artifact1.getDirective().get(KEY_VERSION)) : "Expected correct bundle version to be found!";

        XmlDeploymentArtifact artifact2 = artifacts[0].get(1);
        assert new URL("file:///bundle5").equals(artifact2.getUrl()) : "Expected 'file:///bundle5' URL to be found!";
        assert artifact2.getDirective().size() == 2 : "Expected two directives to be found!";
        assert "bundle5".equals(artifact2.getDirective().get(KEY_SYMBOLICNAME)) : "Expected correct symbolic name to be found!";
        assert "5.0.0".equals(artifact2.getDirective().get(KEY_VERSION)) : "Expected correct bundle version to be found!";
    }
View Full Code Here

Examples of org.apache.ace.deployment.provider.repositorybased.BaseRepositoryHandler.XmlDeploymentArtifact

        List<XmlDeploymentArtifact>[] artifacts = handler.getArtifacts();
        assert artifacts.length == 1 : "Expected a single artifact to be found!";
        assert artifacts[0].size() == 1 : "Expected a single artifact to be found!";

        XmlDeploymentArtifact artifact1 = artifacts[0].get(0);
        assert new URL("file:///bundle4").equals(artifact1.getUrl()) : "Expected 'file:///bundle4' URL to be found!";
        assert artifact1.getDirective().size() == 2 : "Expected two directives to be found!";
        assert "bundle4".equals(artifact1.getDirective().get(KEY_SYMBOLICNAME)) : "Expected correct symbolic name to be found!";
        assert "4.0.0".equals(artifact1.getDirective().get(KEY_VERSION)) : "Expected correct bundle version to be found!";
    }
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.