db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From arm...@apache.org
Subject svn commit: r382615 - /db/ojb/branches/OJB_1_0_RELEASE/src/test/org/apache/ojb/broker/InheritanceMultipleTableTest.java
Date Fri, 03 Mar 2006 01:58:31 GMT
Author: arminw
Date: Thu Mar  2 17:58:30 2006
New Revision: 382615

URL: http://svn.apache.org/viewcvs?rev=382615&view=rev
Log:
rename variables

Modified:
    db/ojb/branches/OJB_1_0_RELEASE/src/test/org/apache/ojb/broker/InheritanceMultipleTableTest.java

Modified: db/ojb/branches/OJB_1_0_RELEASE/src/test/org/apache/ojb/broker/InheritanceMultipleTableTest.java
URL: http://svn.apache.org/viewcvs/db/ojb/branches/OJB_1_0_RELEASE/src/test/org/apache/ojb/broker/InheritanceMultipleTableTest.java?rev=382615&r1=382614&r2=382615&view=diff
==============================================================================
--- db/ojb/branches/OJB_1_0_RELEASE/src/test/org/apache/ojb/broker/InheritanceMultipleTableTest.java
(original)
+++ db/ojb/branches/OJB_1_0_RELEASE/src/test/org/apache/ojb/broker/InheritanceMultipleTableTest.java
Thu Mar  2 17:58:30 2006
@@ -50,23 +50,23 @@
         long timestamp = System.currentTimeMillis();
         Long id_2 = new Long(timestamp);
         String name = "testLookupByIdentity_2_" + timestamp;
-        Executive ex1 = new Executive(id_2, "executive_" + name, "department_1", null);
+        Executive executive = new Executive(id_2, "executive_" + name, "department_1", null);
 
         broker.beginTransaction();
-        broker.store(ex1);
+        broker.store(executive);
         broker.commitTransaction();
         broker.clearCache();
 
         // we build the Identity with "wrong" real class specified
         // (which is Executive, not Employee), but this shouldn't matter
         // because OJB should detect the correct type on query
-        Identity employee_oid = broker.serviceIdentity().buildIdentity(
-                Employee.class, new String[]{"id", "id_2"}, new Object[]{ex1.getId(), ex1.getId_2()});
-        Object result = broker.getObjectByIdentity(employee_oid);
+        Identity oid = broker.serviceIdentity().buildIdentity(
+                Employee.class, new String[]{"id", "id_2"}, new Object[]{executive.getId(),
executive.getId_2()});
+        Object result = broker.getObjectByIdentity(oid);
 
         //System.out.println("Result: " + result);
         assertEquals(Executive.class.getName(), result.getClass().getName());
-        assertEquals(ex1, result);
+        assertEquals(executive, result);
     }
 
     public void testLookupByIdentity()



---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-dev-help@db.apache.org


Mime
View raw message