Return-Path: Delivered-To: apmail-directory-commits-archive@www.apache.org Received: (qmail 58075 invoked from network); 3 Sep 2006 14:01:20 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 3 Sep 2006 14:01:20 -0000 Received: (qmail 57001 invoked by uid 500); 3 Sep 2006 14:01:20 -0000 Delivered-To: apmail-directory-commits-archive@directory.apache.org Received: (qmail 56964 invoked by uid 500); 3 Sep 2006 14:01:20 -0000 Mailing-List: contact commits-help@directory.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@directory.apache.org Delivered-To: mailing list commits@directory.apache.org Received: (qmail 56953 invoked by uid 99); 3 Sep 2006 14:01:20 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 03 Sep 2006 07:01:20 -0700 X-ASF-Spam-Status: No, hits=-9.4 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [140.211.166.113] (HELO eris.apache.org) (140.211.166.113) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 03 Sep 2006 07:01:19 -0700 Received: by eris.apache.org (Postfix, from userid 65534) id 66BF71A981A; Sun, 3 Sep 2006 07:00:59 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit 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 -0000 To: commits@directory.apache.org From: elecharny@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20060903140059.66BF71A981A@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N 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 Apache Directory Project + * @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 Apache Directory Project + * @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() ); + } + +}