harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ndbe...@apache.org
Subject svn commit: r451857 [4/4] - in /incubator/harmony/enhanced/classlib/trunk/modules/auth/src/test/java: common/javax/security/auth/ common/javax/security/auth/callback/ common/javax/security/auth/kerberos/ common/javax/security/auth/login/ common/javax/s...
Date Mon, 02 Oct 2006 02:52:43 GMT
Modified: incubator/harmony/enhanced/classlib/trunk/modules/auth/src/test/java/common/org/apache/harmony/auth/tests/javax/security/sasl/serialization/RealmChoiceCallbackTest.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/auth/src/test/java/common/org/apache/harmony/auth/tests/javax/security/sasl/serialization/RealmChoiceCallbackTest.java?view=diff&rev=451857&r1=451856&r2=451857
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/auth/src/test/java/common/org/apache/harmony/auth/tests/javax/security/sasl/serialization/RealmChoiceCallbackTest.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/auth/src/test/java/common/org/apache/harmony/auth/tests/javax/security/sasl/serialization/RealmChoiceCallbackTest.java
Sun Oct  1 19:52:40 2006
@@ -43,7 +43,6 @@
             "t"};
 
     public static final int [] idx = {2, 3};
-    @Override
     protected Object[] getData() {
         Object [] oo = {
                 new RealmChoiceCallback(msgs[0], msgs, 0, true),
@@ -52,8 +51,9 @@
                 new RealmChoiceCallback(msgs[2], msgs, 0, false)
 
         };        
-for (Object element : oo) {
-            RealmChoiceCallback rc = (RealmChoiceCallback)element;           
+//       
+        for (int i = 0; i < oo.length; i++) {
+            RealmChoiceCallback rc = (RealmChoiceCallback)oo[i];           
             if (rc.allowMultipleSelections()) {
                 rc.setSelectedIndexes(idx);
             } else {

Modified: incubator/harmony/enhanced/classlib/trunk/modules/auth/src/test/java/common/org/apache/harmony/auth/tests/javax/security/sasl/serialization/SaslExceptionTest.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/auth/src/test/java/common/org/apache/harmony/auth/tests/javax/security/sasl/serialization/SaslExceptionTest.java?view=diff&rev=451857&r1=451856&r2=451857
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/auth/src/test/java/common/org/apache/harmony/auth/tests/javax/security/sasl/serialization/SaslExceptionTest.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/auth/src/test/java/common/org/apache/harmony/auth/tests/javax/security/sasl/serialization/SaslExceptionTest.java
Sun Oct  1 19:52:40 2006
@@ -37,7 +37,6 @@
             "New message",
             "Long message for Exception. Long message for Exception. Long message for Exception."
};
 
-    @Override
     protected Object[] getData() {
         String msg = null;
         Exception cause = new Exception(msgs[1]);

Modified: incubator/harmony/enhanced/classlib/trunk/modules/auth/src/test/java/common/org/apache/harmony/auth/tests/module/Krb5LoginModuleTest.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/auth/src/test/java/common/org/apache/harmony/auth/tests/module/Krb5LoginModuleTest.java?view=diff&rev=451857&r1=451856&r2=451857
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/auth/src/test/java/common/org/apache/harmony/auth/tests/module/Krb5LoginModuleTest.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/auth/src/test/java/common/org/apache/harmony/auth/tests/module/Krb5LoginModuleTest.java
Sun Oct  1 19:52:40 2006
@@ -50,12 +50,11 @@
     private KrbServer server;
 
     // module options
-    private final TreeMap<String, String> options = new TreeMap<String, String>();
+    private TreeMap<String, String> options = new TreeMap<String, String>();
 
     /**
      * Sets system env. properties and optionaly starts local mock server
      */
-    @Override
     protected void setUp() throws Exception {
 
         // save old system properties
@@ -80,7 +79,6 @@
     /**
      * Shuts down local server and restore system env. properties
      */
-    @Override
     protected void tearDown() throws Exception {
         if (server != null) {
             // shut down local server
@@ -169,7 +167,6 @@
 
         public byte[] respond;
 
-        @Override
         public void run() {
 
             try {

Modified: incubator/harmony/enhanced/classlib/trunk/modules/auth/src/test/java/common/org/apache/harmony/auth/tests/support/SecurityChecker.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/auth/src/test/java/common/org/apache/harmony/auth/tests/support/SecurityChecker.java?view=diff&rev=451857&r1=451856&r2=451857
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/auth/src/test/java/common/org/apache/harmony/auth/tests/support/SecurityChecker.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/auth/src/test/java/common/org/apache/harmony/auth/tests/support/SecurityChecker.java
Sun Oct  1 19:52:40 2006
@@ -42,7 +42,6 @@
         enableAccess = enable;
     }
 
-    @Override
     public void checkPermission(Permission p) {
         if (checkTarget.equals(p)) {
             checkAsserted = true;

Modified: incubator/harmony/enhanced/classlib/trunk/modules/auth/src/test/java/common/org/apache/harmony/auth/tests/support/SpiEngUtils.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/auth/src/test/java/common/org/apache/harmony/auth/tests/support/SpiEngUtils.java?view=diff&rev=451857&r1=451856&r2=451857
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/auth/src/test/java/common/org/apache/harmony/auth/tests/support/SpiEngUtils.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/auth/src/test/java/common/org/apache/harmony/auth/tests/support/SpiEngUtils.java
Sun Oct  1 19:52:40 2006
@@ -73,7 +73,6 @@
         return res;
     }
 
-    @SuppressWarnings("serial")
     public class MyProvider extends Provider {
 
         public MyProvider(String name, String info, String key, String clName) {

Modified: incubator/harmony/enhanced/classlib/trunk/modules/auth/src/test/java/common/org/ietf/jgss/GSSManagerTest.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/auth/src/test/java/common/org/ietf/jgss/GSSManagerTest.java?view=diff&rev=451857&r1=451856&r2=451857
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/auth/src/test/java/common/org/ietf/jgss/GSSManagerTest.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/auth/src/test/java/common/org/ietf/jgss/GSSManagerTest.java
Sun Oct  1 19:52:40 2006
@@ -80,88 +80,73 @@
 
     public static class TestManager extends GSSManager {
 
-        @Override
         public void addProviderAtEnd(Provider p, Oid mech) throws GSSException {
         }
 
-        @Override
         public void addProviderAtFront(Provider p, Oid mech)
             throws GSSException {
         }
 
-        @Override
         public GSSContext createContext(byte[] interProcessToken)
             throws GSSException {
             return null;
         }
 
-        @Override
         public GSSContext createContext(GSSCredential myCred)
             throws GSSException {
             return null;
         }
 
-        @Override
         public GSSContext createContext(GSSName peer, Oid mech,
                                         GSSCredential myCred, int lifetime)
             throws GSSException {
             return null;
         }
 
-        @Override
         public GSSCredential createCredential(GSSName name, int lifetime,
                                               Oid mech, int usage)
             throws GSSException {
             return null;
         }
 
-        @Override
         public GSSCredential createCredential(GSSName name, int lifetime,
                                               Oid[] mechs, int usage)
             throws GSSException {
             return null;
         }
 
-        @Override
         public GSSCredential createCredential(int usage) throws GSSException {
             return null;
         }
 
-        @Override
         public GSSName createName(byte[] name, Oid nameType, Oid mech)
             throws GSSException {
             return null;
         }
 
-        @Override
         public GSSName createName(byte[] name, Oid nameType)
             throws GSSException {
             return null;
         }
 
-        @Override
         public GSSName createName(String nameStr, Oid nameType, Oid mech)
             throws GSSException {
             return null;
         }
 
-        @Override
         public GSSName createName(String nameStr, Oid nameType)
             throws GSSException {
             return null;
         }
 
-        @Override
         public Oid[] getMechs() {
             return null;
         }
 
-        @Override
         public Oid[] getMechsForName(Oid nameType) {
             return null;
         }
 
-        @Override
         public Oid[] getNamesForMech(Oid mech) throws GSSException {
             return null;
         }

Modified: incubator/harmony/enhanced/classlib/trunk/modules/auth/src/test/java/common/org/ietf/jgss/OidTest.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/auth/src/test/java/common/org/ietf/jgss/OidTest.java?view=diff&rev=451857&r1=451856&r2=451857
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/auth/src/test/java/common/org/ietf/jgss/OidTest.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/auth/src/test/java/common/org/ietf/jgss/OidTest.java
Sun Oct  1 19:52:40 2006
@@ -167,10 +167,10 @@
                 "2.2.-1", // negative third subidentifier
         };
 
-        for (String element : testcase) {
+        for (int i = 0; i < testcase.length; i++) {
             try {
-                new Oid(element);
-                fail("No expected GSSException for oid string: " + element);
+                new Oid(testcase[i]);
+                fail("No expected GSSException for oid string: " + testcase[i]);
             } catch (GSSException e) {
                 assertEquals(GSSException.FAILURE, e.getMajor());
                 assertEquals(0, e.getMinor());

Modified: incubator/harmony/enhanced/classlib/trunk/modules/auth/src/test/java/linux/org/apache/harmony/auth/module/UnixLoginModuleTest.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/auth/src/test/java/linux/org/apache/harmony/auth/module/UnixLoginModuleTest.java?view=diff&rev=451857&r1=451856&r2=451857
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/auth/src/test/java/linux/org/apache/harmony/auth/module/UnixLoginModuleTest.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/auth/src/test/java/linux/org/apache/harmony/auth/module/UnixLoginModuleTest.java
Sun Oct  1 19:52:40 2006
@@ -38,14 +38,24 @@
  */
 public class UnixLoginModuleTest extends TestCase {
 
+    /**
+     * Standalone entry point.
+     * @param args
+     */
+    public static void main(String[] args) {
+        junit.textui.TestRunner.run(UnixLoginModuleTest.class);
+    }
+
     UnixLoginModule lm = new UnixLoginModule();
 
-    @Override
+    /*
+     * @see TestCase#setUp()
+     */
     protected void setUp() throws Exception {
         Subject subj = new Subject();
         CallbackHandler cbh = new TestCallbackHandler();
-        Map<String, ?> sharedState = new HashMap<String, Object>();
-        Map<String, ?> options = new HashMap<String, Object>();
+        Map sharedState = new HashMap();
+        Map options = new HashMap();
         lm.initialize(subj, cbh, sharedState, options);
     }
 
@@ -62,8 +72,8 @@
         // Need new, non initialized instance of LoginModule
         lm = new UnixLoginModule();
         
-        Map<String, ?> shared = new HashMap<String, Object>();
-        Map<String, ?> options = new HashMap<String, Object>();
+        Map shared = new HashMap();
+        Map options = new HashMap();
         CallbackHandler cbh = new TestCallbackHandler();
         // must not accept null for subject
         try {

Modified: incubator/harmony/enhanced/classlib/trunk/modules/auth/src/test/java/windows/org/apache/harmony/auth/module/NTLoginModuleTest.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/classlib/trunk/modules/auth/src/test/java/windows/org/apache/harmony/auth/module/NTLoginModuleTest.java?view=diff&rev=451857&r1=451856&r2=451857
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/auth/src/test/java/windows/org/apache/harmony/auth/module/NTLoginModuleTest.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/auth/src/test/java/windows/org/apache/harmony/auth/module/NTLoginModuleTest.java
Sun Oct  1 19:52:40 2006
@@ -38,14 +38,24 @@
  */
 public class NTLoginModuleTest extends TestCase {
 
+    /**
+     * Standalone entry point.
+     * @param args
+     */
+    public static void main(String[] args) {
+        junit.textui.TestRunner.run(NTLoginModuleTest.class);
+    }
+
     NTLoginModule lm = new NTLoginModule();
 
-    @Override
+    /*
+     * @see TestCase#setUp()
+     */
     protected void setUp() throws Exception {
         Subject subj = new Subject();
         CallbackHandler cbh = new TestCallbackHandler();
-        Map<String, ?> sharedState = new HashMap<String, Object>();
-        Map<String, ?> options = new HashMap<String, Object>();
+        Map sharedState = new HashMap();
+        Map options = new HashMap();
         lm.initialize(subj, cbh, sharedState, options);
     }
 
@@ -62,8 +72,8 @@
         // Need new, non initialized instance of LoginModule
         lm = new NTLoginModule();
         
-        Map<String, ?> shared = new HashMap<String, Object>();
-        Map<String, ?> options = new HashMap<String, Object>();
+        Map shared = new HashMap();
+        Map options = new HashMap();
         CallbackHandler cbh = new TestCallbackHandler();
         // must not accept null for subject
         try {



Mime
View raw message