You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@beehive.apache.org by ek...@apache.org on 2006/05/02 03:27:08 UTC

svn commit: r398760 - /beehive/trunk/system-controls/test/jdbc/junitTests/org/apache/beehive/controls/system/jdbc/units/JdbcControlSerializationTest.java

Author: ekoneil
Date: Mon May  1 18:27:03 2006
New Revision: 398760

URL: http://svn.apache.org/viewcvs?rev=398760&view=rev
Log:
Switch a JdbcControl test over from using implementation specific methods on the BeanContextServicesSupport class to vanilla object serialization.

BB: self
Test: System controls pass


Modified:
    beehive/trunk/system-controls/test/jdbc/junitTests/org/apache/beehive/controls/system/jdbc/units/JdbcControlSerializationTest.java

Modified: beehive/trunk/system-controls/test/jdbc/junitTests/org/apache/beehive/controls/system/jdbc/units/JdbcControlSerializationTest.java
URL: http://svn.apache.org/viewcvs/beehive/trunk/system-controls/test/jdbc/junitTests/org/apache/beehive/controls/system/jdbc/units/JdbcControlSerializationTest.java?rev=398760&r1=398759&r2=398760&view=diff
==============================================================================
--- beehive/trunk/system-controls/test/jdbc/junitTests/org/apache/beehive/controls/system/jdbc/units/JdbcControlSerializationTest.java (original)
+++ beehive/trunk/system-controls/test/jdbc/junitTests/org/apache/beehive/controls/system/jdbc/units/JdbcControlSerializationTest.java Mon May  1 18:27:03 2006
@@ -100,14 +100,14 @@
         File serFile = File.createTempFile("jdbcc", "ser");
         ObjectOutputStream oos = new ObjectOutputStream(new FileOutputStream(serFile));
         ControlTestContainerContext ctcc = (ControlTestContainerContext) ccc;
-        ctcc.writeChildren(oos);
+        oos.writeObject(ctcc);
         oos.close();
 
         //
         // deserialize the ctcc contents
         //
         ObjectInputStream ois = new ObjectInputStream(new FileInputStream(serFile));
-        ctcc.readChildren(ois);
+        ctcc = (ControlTestContainerContext)ois.readObject();
         ois.close();
         serFile.delete();