[jboss-cvs] jboss-serialization/tests/org/jboss/serial/regression/jbser85 ...
Clebert Suconic
csuconic at jboss.com
Fri Jul 28 00:58:27 EDT 2006
User: csuconic
Date: 06/07/28 00:58:27
Added: tests/org/jboss/serial/regression/jbser85
RegressionTestCase.java
Log:
JBSER-85 - regression testcase added
Revision Changes Path
1.1 date: 2006/07/28 04:58:27; author: csuconic; state: Exp;jboss-serialization/tests/org/jboss/serial/regression/jbser85/RegressionTestCase.java
Index: RegressionTestCase.java
===================================================================
/*
* JBoss, Home of Professional Open Source
* Copyright 2005, JBoss Inc., and individual contributors as indicated
* by the @authors tag. See the copyright.txt in the distribution for a
* full listing of individual contributors.
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* This software is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this software; if not, write to the Free
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
*/
package org.jboss.serial.regression.jbser85;
import org.jboss.serial.io.*;
import junit.framework.TestCase;
import java.io.*;
public class RegressionTestCase extends TestCase
{
public void testRegression() throws Exception
{
ByteArrayOutputStream byteOut = new ByteArrayOutputStream();
JBossObjectOutputStream jbout = new JBossObjectOutputStream(byteOut);
jbout.writeObject(new double[0]);
jbout.flush();
JBossObjectInputStream jbinput = new JBossObjectInputStream(new ByteArrayInputStream(byteOut.toByteArray()));
Object newObj = jbinput.readObject();
}
}
More information about the jboss-cvs-commits
mailing list