db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From myrn...@apache.org
Subject svn commit: r526087 [3/3] - in /db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests: tests/jdbcapi/DataSourceTest.java util/SecurityCheck.java
Date Fri, 06 Apr 2007 08:03:51 GMT
Propchange: db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/DataSourceTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/util/SecurityCheck.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/util/SecurityCheck.java?view=diff&rev=526087&r1=526086&r2=526087
==============================================================================
--- db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/util/SecurityCheck.java
(original)
+++ db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/util/SecurityCheck.java
Fri Apr  6 01:03:51 2007
@@ -29,6 +29,8 @@
 import java.util.SortedMap;
 import java.util.TreeMap;
 
+import junit.framework.Assert;
+
 
 /**
  * Code to aid in checking the Security of Derby.
@@ -163,6 +165,14 @@
 		SecurityCheck.inspectClass(o.getClass(), declared);
 	}
 	
+    // temporary add a method - this will eventually replace inspect
+    // method above
+    public static void assertSourceSecurity(Object o, String declared)
+    {
+        Assert.assertNotNull(o);
+        Assert.assertTrue(SecurityCheck.inspectClass(o.getClass(), declared));
+    }
+    
 	/**
 	 * Inspect a Derby class for security risks. This includes following potential
 	 * references exposed through the class.



Mime
View raw message