Package org.jboss.serial.data

Examples of org.jboss.serial.data.TestWithFinalField


* @author <a href="mailto:clebert.suconic@jboss.com">Clebert Suconic</a>
*/
public class FinalFieldTest extends TestCase {
    public void testFinal() throws Exception
    {
        TestWithFinalField finalField = new TestWithFinalField();

        ByteArrayOutputStream byteout = new ByteArrayOutputStream();
        ObjectOutputStream out = new ObjectOutputStream (byteout);
        out.writeObject(finalField);
        out.flush();
        ObjectInputStream inp = new ObjectInputStream (new ByteArrayInputStream(byteout.toByteArray()));
        TestWithFinalField finalField2 = (TestWithFinalField)inp.readObject();

        assertEquals(finalField,finalField2);
    }
View Full Code Here


* @author <a href="mailto:clebert.suconic@jboss.com">Clebert Suconic</a>
*/
public class FinalFieldTest extends TestCase {
    public void testFinal() throws Exception
    {
        TestWithFinalField finalField = new TestWithFinalField();

        ByteArrayOutputStream byteout = new ByteArrayOutputStream();
        ObjectOutputStream out = new ObjectOutputStream (byteout);
        out.writeObject(finalField);
        out.flush();
        ObjectInputStream inp = new ObjectInputStream (new ByteArrayInputStream(byteout.toByteArray()));
        TestWithFinalField finalField2 = (TestWithFinalField)inp.readObject();

        assertEquals(finalField,finalField2);
    }
View Full Code Here

TOP

Related Classes of org.jboss.serial.data.TestWithFinalField

Copyright © 2018 www.massapicom. 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.