Examples of TestWithFinalField


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

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
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.