directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r439781 - in /directory/sandbox/akarasulu/apacheds-2.0/shared/ldap/src/test/java/org/apache/directory/shared/ldap/messages/bind: SaslCredentialsTest.java SimpleAuthenticationTest.java
Date Sun, 03 Sep 2006 14:00:58 GMT
Author: elecharny
Date: Sun Sep  3 07:00:58 2006
New Revision: 439781

URL: http://svn.apache.org/viewvc?rev=439781&view=rev
Log:
Added two unit tests classes for Authentication classes

Added:
    directory/sandbox/akarasulu/apacheds-2.0/shared/ldap/src/test/java/org/apache/directory/shared/ldap/messages/bind/SaslCredentialsTest.java
    directory/sandbox/akarasulu/apacheds-2.0/shared/ldap/src/test/java/org/apache/directory/shared/ldap/messages/bind/SimpleAuthenticationTest.java

Added: directory/sandbox/akarasulu/apacheds-2.0/shared/ldap/src/test/java/org/apache/directory/shared/ldap/messages/bind/SaslCredentialsTest.java
URL: http://svn.apache.org/viewvc/directory/sandbox/akarasulu/apacheds-2.0/shared/ldap/src/test/java/org/apache/directory/shared/ldap/messages/bind/SaslCredentialsTest.java?rev=439781&view=auto
==============================================================================
--- directory/sandbox/akarasulu/apacheds-2.0/shared/ldap/src/test/java/org/apache/directory/shared/ldap/messages/bind/SaslCredentialsTest.java
(added)
+++ directory/sandbox/akarasulu/apacheds-2.0/shared/ldap/src/test/java/org/apache/directory/shared/ldap/messages/bind/SaslCredentialsTest.java
Sun Sep  3 07:00:58 2006
@@ -0,0 +1,44 @@
+/*
+ *  Licensed to the Apache Software Foundation (ASF) under one
+ *  or more contributor license agreements.  See the NOTICE file
+ *  distributed with this work for additional information
+ *  regarding copyright ownership.  The ASF licenses this file
+ *  to you under the Apache License, Version 2.0 (the
+ *  "License"); you may not use this file except in compliance
+ *  with the License.  You may obtain a copy of the License at
+ *  
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *  
+ *  Unless required by applicable law or agreed to in writing,
+ *  software distributed under the License is distributed on an
+ *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ *  KIND, either express or implied.  See the License for the
+ *  specific language governing permissions and limitations
+ *  under the License. 
+ *  
+ */
+package org.apache.directory.shared.ldap.messages.bind;
+
+import junit.framework.TestCase;
+
+/**
+ * Test for the SaslCredentials class
+ *
+ * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
+ * @version $Rev$, $Date$
+ */
+public class SaslCredentialsTest extends TestCase
+{
+    /**
+     * 
+     * Test that the SaslCredentials object correctly returns its own type
+     *
+     */
+    public void testSaslCredentialInstanceOf()
+    {
+        Authentication auth = new SaslCredentials();
+        
+        assertTrue( auth instanceof SaslCredentials );
+        assertTrue( auth.isSasl() );
+    }
+}

Added: directory/sandbox/akarasulu/apacheds-2.0/shared/ldap/src/test/java/org/apache/directory/shared/ldap/messages/bind/SimpleAuthenticationTest.java
URL: http://svn.apache.org/viewvc/directory/sandbox/akarasulu/apacheds-2.0/shared/ldap/src/test/java/org/apache/directory/shared/ldap/messages/bind/SimpleAuthenticationTest.java?rev=439781&view=auto
==============================================================================
--- directory/sandbox/akarasulu/apacheds-2.0/shared/ldap/src/test/java/org/apache/directory/shared/ldap/messages/bind/SimpleAuthenticationTest.java
(added)
+++ directory/sandbox/akarasulu/apacheds-2.0/shared/ldap/src/test/java/org/apache/directory/shared/ldap/messages/bind/SimpleAuthenticationTest.java
Sun Sep  3 07:00:58 2006
@@ -0,0 +1,46 @@
+/*
+ *  Licensed to the Apache Software Foundation (ASF) under one
+ *  or more contributor license agreements.  See the NOTICE file
+ *  distributed with this work for additional information
+ *  regarding copyright ownership.  The ASF licenses this file
+ *  to you under the Apache License, Version 2.0 (the
+ *  "License"); you may not use this file except in compliance
+ *  with the License.  You may obtain a copy of the License at
+ *  
+ *    http://www.apache.org/licenses/LICENSE-2.0
+ *  
+ *  Unless required by applicable law or agreed to in writing,
+ *  software distributed under the License is distributed on an
+ *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ *  KIND, either express or implied.  See the License for the
+ *  specific language governing permissions and limitations
+ *  under the License. 
+ *  
+ */
+package org.apache.directory.shared.ldap.messages.bind;
+
+import junit.framework.TestCase;
+
+
+/**
+ * Test for the SimpleAuthentication class
+ *
+ * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
+ * @version $Rev$, $Date$
+ */
+public class SimpleAuthenticationTest extends TestCase
+{
+    /**
+     * 
+     * Test that the SimpleAuthentication object correctly returns its own type
+     *
+     */
+    public void testSimpleAuthenticationInstanceOf()
+    {
+        Authentication auth = new SimpleAuthentication();
+        
+        assertTrue( auth instanceof SimpleAuthentication );
+        assertTrue( auth.isSimple() );
+    }
+
+}



Mime
View raw message