Package org.apache.aries.unittest.fixture.ArchiveFixture

Examples of org.apache.aries.unittest.fixture.ArchiveFixture.Fixture.writeOut()


                           
            .file("OSGI-INF/blueprint/blueprint.xml", blueprint.toString())
            .end();
       
        ByteArrayOutputStream bout = new ByteArrayOutputStream();
        jar.writeOut(bout);
       
        return new ByteArrayInputStream(bout.toByteArray());
    }
   
    @Test
View Full Code Here


                .line("<blueprint xmlns=\"http://www.osgi.org/xmlns/blueprint/v1.0.0\">")
                .line("<reference interface=\"java.util.List\" />")
                .line("</blueprint>").end().end();
       
        ByteArrayOutputStream bout = new ByteArrayOutputStream();
        jar.writeOut(bout);
       
        Bundle b = bundleContext.installBundle("test.bundle", new ByteArrayInputStream(bout.toByteArray()));
       
        for (int i=0; i<16; i++) System.gc();
        long startFreeMemory = Runtime.getRuntime().freeMemory();
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.