From: David G. <mu...@us...> - 2006-11-27 16:20:44
|
Update of /cvsroot/jfreechart/jfreechart/tests/org/jfree/data/xy/junit In directory sc8-pr-cvs6.sourceforge.net:/tmp/cvs-serv28653/tests/org/jfree/data/xy/junit Modified Files: Tag: STABLE_1-0-0 MatrixSeriesTests.java Log Message: Minor reformatting. Index: MatrixSeriesTests.java =================================================================== RCS file: /cvsroot/jfreechart/jfreechart/tests/org/jfree/data/xy/junit/Attic/MatrixSeriesTests.java,v retrieving revision 1.1.2.1 retrieving revision 1.1.2.2 diff -C2 -d -r1.1.2.1 -r1.1.2.2 *** MatrixSeriesTests.java 3 Oct 2006 15:41:38 -0000 1.1.2.1 --- MatrixSeriesTests.java 27 Nov 2006 16:20:34 -0000 1.1.2.2 *************** *** 3,7 **** * =========================================================== * ! * (C) Copyright 2000-2005, by Object Refinery Limited and Contributors. * * Project Info: http://www.jfree.org/jfreechart/index.html --- 3,7 ---- * =========================================================== * ! * (C) Copyright 2000-2006, by Object Refinery Limited and Contributors. * * Project Info: http://www.jfree.org/jfreechart/index.html *************** *** 28,32 **** * MatrixSeriesTests.java * ---------------------- ! * (C) Copyright 2004, 2005, by Object Refinery Limited and Contributors. * * Original Author: David Gilbert (for Object Refinery Limited); --- 28,32 ---- * MatrixSeriesTests.java * ---------------------- ! * (C) Copyright 2004-2006, by Object Refinery Limited and Contributors. * * Original Author: David Gilbert (for Object Refinery Limited); *************** *** 122,126 **** } catch (CloneNotSupportedException e) { ! System.err.println("Failed to clone."); } assertTrue(m1 != m2); --- 122,126 ---- } catch (CloneNotSupportedException e) { ! e.printStackTrace(); } assertTrue(m1 != m2); *************** *** 133,142 **** */ public void testSerialization() { - MatrixSeries m1 = new MatrixSeries("Test", 8, 3); m1.update(0, 0, 11.0); m1.update(7, 2, 22.0); MatrixSeries m2 = null; - try { ByteArrayOutputStream buffer = new ByteArrayOutputStream(); --- 133,140 ---- *************** *** 146,159 **** ObjectInput in = new ObjectInputStream( ! new ByteArrayInputStream(buffer.toByteArray()) ! ); m2 = (MatrixSeries) in.readObject(); in.close(); } catch (Exception e) { ! fail(e.toString()); } assertEquals(m1, m2); - } --- 144,155 ---- ObjectInput in = new ObjectInputStream( ! new ByteArrayInputStream(buffer.toByteArray())); m2 = (MatrixSeries) in.readObject(); in.close(); } catch (Exception e) { ! e.printStackTrace(); } assertEquals(m1, m2); } *************** *** 202,205 **** assertEquals(5.0, m.getItem(5).doubleValue(), 0.001); } - } \ No newline at end of file --- 198,200 ---- |