Return-Path: Delivered-To: apmail-directory-commits-archive@www.apache.org Received: (qmail 34503 invoked from network); 1 Nov 2006 03:17:41 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 1 Nov 2006 03:17:41 -0000 Received: (qmail 75652 invoked by uid 500); 1 Nov 2006 03:17:53 -0000 Delivered-To: apmail-directory-commits-archive@directory.apache.org Received: (qmail 75616 invoked by uid 500); 1 Nov 2006 03:17:53 -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 75605 invoked by uid 99); 1 Nov 2006 03:17:53 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 31 Oct 2006 19:17:53 -0800 X-ASF-Spam-Status: No, hits=-9.4 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO eris.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 31 Oct 2006 19:17:41 -0800 Received: by eris.apache.org (Postfix, from userid 65534) id BD8521A9846; Tue, 31 Oct 2006 19:17:17 -0800 (PST) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r469766 - /directory/trunks/apacheds/mitosis/src/test/java/org/apache/directory/mitosis/common/SimpleCSNTest.java Date: Wed, 01 Nov 2006 03:17:17 -0000 To: commits@directory.apache.org From: trustin@apache.org X-Mailer: svnmailer-1.1.0 Message-Id: <20061101031717.BD8521A9846@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: trustin Date: Tue Oct 31 19:17:17 2006 New Revision: 469766 URL: http://svn.apache.org/viewvc?view=rev&rev=469766 Log: Fixed a bug that the SimpleCSNTest fails when assertion is enabled Modified: directory/trunks/apacheds/mitosis/src/test/java/org/apache/directory/mitosis/common/SimpleCSNTest.java Modified: directory/trunks/apacheds/mitosis/src/test/java/org/apache/directory/mitosis/common/SimpleCSNTest.java URL: http://svn.apache.org/viewvc/directory/trunks/apacheds/mitosis/src/test/java/org/apache/directory/mitosis/common/SimpleCSNTest.java?view=diff&rev=469766&r1=469765&r2=469766 ============================================================================== --- directory/trunks/apacheds/mitosis/src/test/java/org/apache/directory/mitosis/common/SimpleCSNTest.java (original) +++ directory/trunks/apacheds/mitosis/src/test/java/org/apache/directory/mitosis/common/SimpleCSNTest.java Tue Oct 31 19:17:17 2006 @@ -48,6 +48,10 @@ new SimpleCSN( "" ); fail(); } + catch ( AssertionError ae ) + { + assertTrue( true ); + } catch ( InvalidCSNException ice ) { assertTrue( true ); @@ -61,6 +65,10 @@ new SimpleCSN( "123" ); fail(); } + catch ( AssertionError ae ) + { + assertTrue( true ); + } catch ( InvalidCSNException ice ) { assertTrue( true ); @@ -74,6 +82,10 @@ new SimpleCSN( "zzz:abc:1" ); fail(); } + catch ( AssertionError ae ) + { + assertTrue( true ); + } catch ( InvalidCSNException ice ) { assertTrue( true ); @@ -87,6 +99,10 @@ new SimpleCSN( ":abc:1" ); fail(); } + catch ( AssertionError ae ) + { + assertTrue( true ); + } catch ( InvalidCSNException ice ) { assertTrue( true ); @@ -100,6 +116,10 @@ new SimpleCSN( "123:*:1" ); fail(); } + catch ( AssertionError ae ) + { + assertTrue( true ); + } catch ( InvalidCSNException ice ) { assertTrue( true ); @@ -113,6 +133,10 @@ new SimpleCSN( "123::1" ); fail(); } + catch ( AssertionError ae ) + { + assertTrue( true ); + } catch ( InvalidCSNException ice ) { assertTrue( true ); @@ -126,6 +150,10 @@ new SimpleCSN( "123:abc:zzz" ); fail(); } + catch ( AssertionError ae ) + { + assertTrue( true ); + } catch ( InvalidCSNException ice ) { assertTrue( true ); @@ -139,6 +167,10 @@ new SimpleCSN( "123:abc:" ); fail(); } + catch ( AssertionError ae ) + { + assertTrue( true ); + } catch ( InvalidCSNException ice ) { assertTrue( true ); @@ -151,6 +183,10 @@ { new SimpleCSN( "123:abc" ); fail(); + } + catch ( AssertionError ae ) + { + assertTrue( true ); } catch ( InvalidCSNException ice ) {