コード例 #1
0
 /** A check for serialization. */
 @Test
 @SuppressWarnings("unchecked")
 public void testSerialization() {
   GridElement<String, String> e1 = new GridElement<String, String>();
   GridElement<String, String> e2 = (GridElement) TestUtils.serialized(e1);
   assertTrue(e1.equals(e2));
 }
コード例 #2
0
 /** Some checks for serialization. */
 @Test
 public void testSerialization() {
   StackedBarRenderer3D r1 = new StackedBarRenderer3D();
   StackedBarRenderer3D r2 = (StackedBarRenderer3D) TestUtils.serialized(r1);
   assertTrue(r1.equals(r2));
 }