Package org.ops4j.pax.exam.options

Examples of org.ops4j.pax.exam.options.WrappedUrlProvisionOption.instructions()


     * See https://ops4j1.jira.com/browse/PAXEXAM-572
     */
    @Test
    public void testEncoding() {
        WrappedUrlProvisionOption option = wrappedBundle(mavenBundle("mygroup", "myArtifactId", "1.0"));
        option.instructions("Export-Package=my.package.*");
        option.overwriteManifest(OverwriteMode.MERGE);
        StringWriter wr = new StringWriter();
        DependenciesDeployer.writeDependenciesFeature(wr, option);
        Assert.assertThat(wr.toString(), StringContains.containsString("<bundle>wrap:mvn:mygroup/myArtifactId/1.0$overwrite=MERGE&amp;Export-Package=my.package.*</bundle>"));
    }
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.