You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-commits@db.apache.org by my...@apache.org on 2007/04/06 10:03:51 UTC
svn commit: r526087 [3/3] - in
/db/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests:
tests/jdbcapi/DataSourceTest.java util/SecurityCheck.java
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.