harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From smish...@apache.org
Subject svn commit: r463569 - in /incubator/harmony/enhanced/classlib/trunk/modules/auth/src/test/java/common: javax/security/auth/login/ org/apache/harmony/auth/tests/javax/security/auth/login/
Date Fri, 13 Oct 2006 06:03:24 GMT
Author: smishura
Date: Thu Oct 12 23:03:22 2006
New Revision: 463569

URL: http://svn.apache.org/viewvc?view=rev&rev=463569
Log:
Rename tests javax.security.auth.login -> o.a.h.auth.tests.javax.security.auth.login

Added:
    incubator/harmony/enhanced/classlib/trunk/modules/auth/src/test/java/common/org/apache/harmony/auth/tests/javax/security/auth/login/AppConfigurationEntryTest.java
      - copied, changed from r463278, incubator/harmony/enhanced/classlib/trunk/modules/auth/src/test/java/common/javax/security/auth/login/AppConfigurationEntryTest.java
    incubator/harmony/enhanced/classlib/trunk/modules/auth/src/test/java/common/org/apache/harmony/auth/tests/javax/security/auth/login/LoginContext1Test.java
      - copied, changed from r463278, incubator/harmony/enhanced/classlib/trunk/modules/auth/src/test/java/common/javax/security/auth/login/LoginContext1Test.java
    incubator/harmony/enhanced/classlib/trunk/modules/auth/src/test/java/common/org/apache/harmony/auth/tests/javax/security/auth/login/LoginContextTest.java
      - copied, changed from r463278, incubator/harmony/enhanced/classlib/trunk/modules/auth/src/test/java/common/javax/security/auth/login/LoginContextTest.java
Removed:
    incubator/harmony/enhanced/classlib/trunk/modules/auth/src/test/java/common/javax/security/auth/login/AppConfigurationEntryTest.java
    incubator/harmony/enhanced/classlib/trunk/modules/auth/src/test/java/common/javax/security/auth/login/LoginContext1Test.java
    incubator/harmony/enhanced/classlib/trunk/modules/auth/src/test/java/common/javax/security/auth/login/LoginContextTest.java

Copied: incubator/harmony/enhanced/classlib/trunk/modules/auth/src/test/java/common/org/apache/harmony/auth/tests/javax/security/auth/login/AppConfigurationEntryTest.java
(from r463278, incubator/harmony/enhanced/classlib/trunk/modules/auth/src/test/java/common/javax/security/auth/login/AppConfigurationEntryTest.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/auth/login/AppConfigurationEntryTest.java?view=diff&rev=463569&p1=incubator/harmony/enhanced/classlib/trunk/modules/auth/src/test/java/common/javax/security/auth/login/AppConfigurationEntryTest.java&r1=463278&p2=incubator/harmony/enhanced/classlib/trunk/modules/auth/src/test/java/common/org/apache/harmony/auth/tests/javax/security/auth/login/AppConfigurationEntryTest.java&r2=463569
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/auth/src/test/java/common/javax/security/auth/login/AppConfigurationEntryTest.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/auth/src/test/java/common/org/apache/harmony/auth/tests/javax/security/auth/login/AppConfigurationEntryTest.java
Thu Oct 12 23:03:22 2006
@@ -20,10 +20,11 @@
 * @version $Revision$
 */
 
-package javax.security.auth.login;
+package org.apache.harmony.auth.tests.javax.security.auth.login;
 
 import java.util.HashMap;
 import java.util.Map;
+import javax.security.auth.login.AppConfigurationEntry;
 
 import junit.framework.TestCase;
 

Copied: incubator/harmony/enhanced/classlib/trunk/modules/auth/src/test/java/common/org/apache/harmony/auth/tests/javax/security/auth/login/LoginContext1Test.java
(from r463278, incubator/harmony/enhanced/classlib/trunk/modules/auth/src/test/java/common/javax/security/auth/login/LoginContext1Test.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/auth/login/LoginContext1Test.java?view=diff&rev=463569&p1=incubator/harmony/enhanced/classlib/trunk/modules/auth/src/test/java/common/javax/security/auth/login/LoginContext1Test.java&r1=463278&p2=incubator/harmony/enhanced/classlib/trunk/modules/auth/src/test/java/common/org/apache/harmony/auth/tests/javax/security/auth/login/LoginContext1Test.java&r2=463569
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/auth/src/test/java/common/javax/security/auth/login/LoginContext1Test.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/auth/src/test/java/common/org/apache/harmony/auth/tests/javax/security/auth/login/LoginContext1Test.java
Thu Oct 12 23:03:22 2006
@@ -20,7 +20,7 @@
 * @version $Revision$
 */
 
-package javax.security.auth.login;
+package org.apache.harmony.auth.tests.javax.security.auth.login;
 
 import java.io.IOException;
 import java.net.URL;
@@ -45,6 +45,10 @@
 import javax.security.auth.callback.CallbackHandler;
 import javax.security.auth.callback.UnsupportedCallbackException;
 import javax.security.auth.login.AppConfigurationEntry.LoginModuleControlFlag;
+import javax.security.auth.login.AppConfigurationEntry;
+import javax.security.auth.login.Configuration;
+import javax.security.auth.login.LoginContext;
+import javax.security.auth.login.LoginException;
 import javax.security.auth.spi.LoginModule;
 
 import junit.framework.TestCase;
@@ -1895,7 +1899,7 @@
             return (TestCallbackHandler_Contexted) instances.get(0);
         }
 
-        TestCallbackHandler_Contexted() {
+        public TestCallbackHandler_Contexted() {
             super();
             accCtor = AccessController.getContext();
         }

Copied: incubator/harmony/enhanced/classlib/trunk/modules/auth/src/test/java/common/org/apache/harmony/auth/tests/javax/security/auth/login/LoginContextTest.java
(from r463278, incubator/harmony/enhanced/classlib/trunk/modules/auth/src/test/java/common/javax/security/auth/login/LoginContextTest.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/auth/login/LoginContextTest.java?view=diff&rev=463569&p1=incubator/harmony/enhanced/classlib/trunk/modules/auth/src/test/java/common/javax/security/auth/login/LoginContextTest.java&r1=463278&p2=incubator/harmony/enhanced/classlib/trunk/modules/auth/src/test/java/common/org/apache/harmony/auth/tests/javax/security/auth/login/LoginContextTest.java&r2=463569
==============================================================================
--- incubator/harmony/enhanced/classlib/trunk/modules/auth/src/test/java/common/javax/security/auth/login/LoginContextTest.java
(original)
+++ incubator/harmony/enhanced/classlib/trunk/modules/auth/src/test/java/common/org/apache/harmony/auth/tests/javax/security/auth/login/LoginContextTest.java
Thu Oct 12 23:03:22 2006
@@ -20,7 +20,7 @@
 * @version $Revision$
 */
 
-package javax.security.auth.login;
+package org.apache.harmony.auth.tests.javax.security.auth.login;
 
 import java.security.Security;
 import java.util.ArrayList;
@@ -30,6 +30,10 @@
 import javax.security.auth.Subject;
 import javax.security.auth.callback.Callback;
 import javax.security.auth.callback.CallbackHandler;
+import javax.security.auth.login.AppConfigurationEntry;
+import javax.security.auth.login.Configuration;
+import javax.security.auth.login.LoginContext;
+import javax.security.auth.login.LoginException;
 import javax.security.auth.spi.LoginModule;
 
 import org.apache.harmony.auth.internal.SecurityTest;
@@ -151,7 +155,7 @@
 
         try {
             Security.setProperty("auth.login.defaultCallbackHandler",
-                    "javax.security.auth.login.LoginContextTest");
+                    LoginContextTest.class.getName());
 
             new LoginContext(moduleName);
             fail("No expected ClassCastException");
@@ -174,7 +178,7 @@
         try {
             Security
                     .setProperty("auth.login.defaultCallbackHandler",
-                            "javax.security.auth.login.LoginContextTest$MyCallbackHandler");
+                            MyCallbackHandler.class.getName());
 
             new LoginContext(moduleName);
 
@@ -233,7 +237,7 @@
         try {
             Security
                     .setProperty("auth.login.defaultCallbackHandler",
-                            "javax.security.auth.login.LoginContextTest$MyCallbackHandler");
+                            MyCallbackHandler.class.getName());
 
             context = new LoginContext(moduleName);
 
@@ -334,7 +338,7 @@
         try {
             Security
                     .setProperty("auth.login.defaultCallbackHandler",
-                            "javax.security.auth.login.LoginContextTest$MyCallbackHandler");
+                            MyCallbackHandler.class.getName());
 
             new LoginContext(moduleName, handler);
 
@@ -496,7 +500,7 @@
         try {
             Security
                     .setProperty("auth.login.defaultCallbackHandler",
-                            "javax.security.auth.login.LoginContextTest$MyCallbackHandler");
+                            MyCallbackHandler.class.getName());
 
             new LoginContext(moduleName, subject);
 
@@ -556,7 +560,7 @@
         try {
             Security
                     .setProperty("auth.login.defaultCallbackHandler",
-                            "javax.security.auth.login.LoginContextTest$MyCallbackHandler");
+                            MyCallbackHandler.class.getName());
 
             context = new LoginContext(moduleName, subject);
 
@@ -805,7 +809,7 @@
             ArrayList list = ((MyConfig) Configuration.getConfiguration()).entries;
 
             AppConfigurationEntry entry = new AppConfigurationEntry(
-                    "javax.security.auth.login.LoginContextTest$" + name,
+                    LoginContextTest.class.getName() + '$' + name,
                     javax.security.auth.login.AppConfigurationEntry.LoginModuleControlFlag.REQUIRED,
                     options);
 



Mime
View raw message