db-jdo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From c..@apache.org
Subject svn commit: r677348 - /db/jdo/trunk/tck2/src/java/org/apache/jdo/tck/api/persistencemanager/NewInstance.java
Date Wed, 16 Jul 2008 17:19:51 GMT
Author: clr
Date: Wed Jul 16 10:19:51 2008
New Revision: 677348

URL: http://svn.apache.org/viewvc?rev=677348&view=rev
Log:
JDO-555 Refactor NewInstance for security.

Modified:
    db/jdo/trunk/tck2/src/java/org/apache/jdo/tck/api/persistencemanager/NewInstance.java

Modified: db/jdo/trunk/tck2/src/java/org/apache/jdo/tck/api/persistencemanager/NewInstance.java
URL: http://svn.apache.org/viewvc/db/jdo/trunk/tck2/src/java/org/apache/jdo/tck/api/persistencemanager/NewInstance.java?rev=677348&r1=677347&r2=677348&view=diff
==============================================================================
--- db/jdo/trunk/tck2/src/java/org/apache/jdo/tck/api/persistencemanager/NewInstance.java
(original)
+++ db/jdo/trunk/tck2/src/java/org/apache/jdo/tck/api/persistencemanager/NewInstance.java
Wed Jul 16 10:19:51 2008
@@ -61,34 +61,19 @@
     /** test newInstance (Class pcInterface) */
     public void testNewInstanceInterface() {
         pm = getPM();   
-        try {
-            pm.newInstance(IAddress.class);
-        } catch (Exception e) {
-            fail("Unexpected exception thrown. "
-                + e.getMessage());
-        }
+        IAddress instance = pm.newInstance(IAddress.class);
     }
 
     /** test newInstance (Class pcAbstractClass) */
     public void testNewInstanceAbstractClass() {
         pm = getPM();   
-        try {
-            pm.newInstance(AAddress.class);
-        } catch (Exception e) {
-            fail("Unexpected exception thrown. "
-                + e.getMessage());
-        }
+        AAddress instance = pm.newInstance(AAddress.class);
     }
 
     /** test newInstance (Class pcClass) */
     public void testNewInstanceClass() {
         pm = getPM();   
-        try {
-            pm.newInstance(Address.class);
-        } catch (Exception e) {
-            fail("Unexpected exception thrown. "
-                + e.getMessage());
-        }
+        Address instance = pm.newInstance(Address.class);
     }
 
     /** test newInstance (Class pcInterface) */



Mime
View raw message