[cvs] expresso/expresso-web/WEB-INF/src/com/jcorporate/expresso/core/dbobj/tests DBObjectTest.java

JCorporate Ltd jcorp at jcorp2.servlets.net
Mon Jun 7 19:28:43 PDT 2004


Update of /home/javacorp/.cvs/expresso/expresso/expresso-web/WEB-INF/src/com/jcorporate/expresso/core/dbobj/tests
In directory jcorp2.servlets.net:/tmp/cvs-serv25517/expresso-web/WEB-INF/src/com/jcorporate/expresso/core/dbobj/tests

Modified Files:
	DBObjectTest.java 
Log Message:
fix some deprecations


Index: DBObjectTest.java
===================================================================
RCS file: /home/javacorp/.cvs/expresso/expresso/expresso-web/WEB-INF/src/com/jcorporate/expresso/core/dbobj/tests/DBObjectTest.java,v
retrieving revision 1.31
retrieving revision 1.32
diff -C2 -d -r1.31 -r1.32
*** DBObjectTest.java	6 May 2004 09:17:20 -0000	1.31
--- DBObjectTest.java	8 Jun 2004 02:28:41 -0000	1.32
***************
*** 68,71 ****
--- 68,72 ----
  import com.jcorporate.expresso.core.db.DBConnectionPool;
  import com.jcorporate.expresso.core.db.DBException;
+ import com.jcorporate.expresso.core.db.TableCreator;
  import com.jcorporate.expresso.core.db.exception.DBRecordNotFoundException;
  import com.jcorporate.expresso.core.misc.ConfigManager;
***************
*** 85,93 ****
  
  /**
!  * <p>
!  * DBObjectTest.java</p>
!  * <p>Copyright 1999, 2000, 2001 Jcorporate Ltd.</p>
!  * A test case to verify the functions of DBObject.  You can also use this
!  * test as
   */
  public class DBObjectTest
--- 86,90 ----
  
  /**
!  * A test case to verify the functions of DBObject.  
   */
  public class DBObjectTest
***************
*** 130,134 ****
  
          TestSchema ts = new TestSchema();
!         Vector v = ts.createAsNeeded(TestSystemInitializer.getTestContext());
  
          for (Enumeration ev = v.elements(); ev.hasMoreElements();) {
--- 127,131 ----
  
          TestSchema ts = new TestSchema();
!         Vector v = TableCreator.getInstance().createAsNeeded(ts, TestSystemInitializer.getTestContext());
  
          for (Enumeration ev = v.elements(); ev.hasMoreElements();) {
***************
*** 152,156 ****
              test1List.setDataContext(TestSystemInitializer.getTestContext());
  
-             Test1 oneTest1 = null;
              test1List.deleteAll();
  
--- 149,152 ----
***************
*** 798,802 ****
  
      public void testDateSetField() {
-         final String testStringValue = "";
          final String testKey = "1";
          try {
--- 794,797 ----
***************
*** 813,817 ****
              oneTest.retrieve();
  
-             String fieldData = oneTest.getField("DateTest");
              System.out.println("Date: " + oneTest.getField("DateTest"));
              System.out.println("DateTime: " + oneTest.getField("DateTimeTest"));
--- 808,811 ----
***************
*** 1141,1144 ****
  
  } /* DBObjectTest */
- 
- /* DBObjectTest */
\ No newline at end of file
--- 1135,1136 ----



More information about the cvs mailing list