db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mattba...@apache.org
Subject cvs commit: db-ojb/src/test/org/apache/ojb/otm SwizzleTests.java
Date Sun, 22 Jun 2003 15:40:08 GMT
mattbaird    2003/06/22 08:40:08

  Modified:    src/test/org/apache/ojb/otm SwizzleTests.java
  Log:
  Make test case correct
  
  Revision  Changes    Path
  1.3       +3 -3      db-ojb/src/test/org/apache/ojb/otm/SwizzleTests.java
  
  Index: SwizzleTests.java
  ===================================================================
  RCS file: /home/cvs/db-ojb/src/test/org/apache/ojb/otm/SwizzleTests.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- SwizzleTests.java	22 Jun 2003 07:07:40 -0000	1.2
  +++ SwizzleTests.java	22 Jun 2003 15:40:08 -0000	1.3
  @@ -31,12 +31,10 @@
   	{
   		_kit = TestKit.getTestInstance();
   		_conn = _kit.acquireConnection(PersistenceBrokerFactory.getDefaultKey());
  -		createTestData();
   	}
   
   	public void tearDown() throws LockingException
   	{
  -		deleteAllData();
   		_conn = null;
   	}
   
  @@ -62,9 +60,11 @@
   		Iterator it = _conn.getIteratorByQuery(q, LockType.WRITE_LOCK);
   		Object retval = null;
   		RelatedToContract r2c = new RelatedToContract();
  +		r2c.setPk("R2C"+TIME);
   		r2c.setRelatedValue1("matt");
   		r2c.setRelatedValue2(34);
  -		r2c.setRelatedValue3(new Date());
  +		r2c.setRelatedValue3(new Timestamp(TIME));
  +		_conn.makePersistent(r2c);
   		while (it.hasNext())
   		{
   			retval = it.next();
  
  
  

Mime
View raw message