Package nextapp.echo2.webcontainer.util

Examples of nextapp.echo2.webcontainer.util.IdTable.register()


     */
    public void testReferenceRelease() {
        IdTable idManager = new IdTable();
        TestObject testObject = new TestObject();
        String id = testObject.getRenderId();
        idManager.register(testObject);
        assertNotNull(idManager.getObject(id));
       
        testObject = null;
        for (int i = 0; i < 10; ++i) {
            System.gc();
View Full Code Here


    public void testSerialization()
    throws Exception {
        IdTable idTable = new IdTable();
        TestObject testObject = new TestObject();
        String id = testObject.getRenderId();
        idTable.register(testObject);
       
        ByteArrayOutputStream byteOut = new ByteArrayOutputStream();
        ObjectOutputStream objectOut = new ObjectOutputStream(byteOut);
        objectOut.writeObject(idTable);
        objectOut.close();
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.