Return-Path: Delivered-To: apmail-directory-commits-archive@www.apache.org Received: (qmail 90819 invoked from network); 15 Mar 2009 02:06:52 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 15 Mar 2009 02:06:52 -0000 Received: (qmail 75940 invoked by uid 500); 15 Mar 2009 02:06:52 -0000 Delivered-To: apmail-directory-commits-archive@directory.apache.org Received: (qmail 75900 invoked by uid 500); 15 Mar 2009 02:06:51 -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 75891 invoked by uid 99); 15 Mar 2009 02:06:51 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 14 Mar 2009 19:06:51 -0700 X-ASF-Spam-Status: No, hits=-1998.8 required=10.0 tests=ALL_TRUSTED,FS_REPLICA X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 15 Mar 2009 02:06:49 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 31D322388975; Sun, 15 Mar 2009 02:06:28 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r754586 - /directory/shared/branches/shared-replication/convert/src/test/java/org/apache/directory/shared/converter/schema/TestSchemaToLdif.java Date: Sun, 15 Mar 2009 02:06:27 -0000 To: commits@directory.apache.org From: elecharny@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20090315020628.31D322388975@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: elecharny Date: Sun Mar 15 02:06:26 2009 New Revision: 754586 URL: http://svn.apache.org/viewvc?rev=754586&view=rev Log: Switched to JUNIT 4.4 Modified: directory/shared/branches/shared-replication/convert/src/test/java/org/apache/directory/shared/converter/schema/TestSchemaToLdif.java Modified: directory/shared/branches/shared-replication/convert/src/test/java/org/apache/directory/shared/converter/schema/TestSchemaToLdif.java URL: http://svn.apache.org/viewvc/directory/shared/branches/shared-replication/convert/src/test/java/org/apache/directory/shared/converter/schema/TestSchemaToLdif.java?rev=754586&r1=754585&r2=754586&view=diff ============================================================================== --- directory/shared/branches/shared-replication/convert/src/test/java/org/apache/directory/shared/converter/schema/TestSchemaToLdif.java (original) +++ directory/shared/branches/shared-replication/convert/src/test/java/org/apache/directory/shared/converter/schema/TestSchemaToLdif.java Sun Mar 15 02:06:26 2009 @@ -25,10 +25,11 @@ import java.util.ArrayList; import java.util.List; -import junit.framework.TestCase; +import org.junit.Test; +import static org.junit.Assert.assertEquals; -public class TestSchemaToLdif extends TestCase +public class TestSchemaToLdif { private static final String HEADER = "#\n" + @@ -74,6 +75,7 @@ //------------------------------------------------------------------------- // Tests for ObjectClass //------------------------------------------------------------------------- + @Test public void testConvertOC() throws ParserException, IOException { String expected = @@ -96,6 +98,7 @@ assertEquals( expected, transform( "testOC") ); } + @Test public void testConvertOCMinimal() throws ParserException, IOException { String expected = @@ -110,6 +113,7 @@ assertEquals( expected, transform( "testOCMinimal" ) ); } + @Test public void testConvertOCNoName() throws ParserException, IOException { String expected = @@ -132,6 +136,7 @@ assertEquals( expected, transform( "testOCNoName" ) ); } + @Test public void testConvertOCAbstract() throws ParserException, IOException { String expected = @@ -147,6 +152,7 @@ assertEquals( expected, transform( "testOCAbstract" ) ); } + @Test public void testConvertOCAuxiliary() throws ParserException, IOException { String expected = @@ -162,6 +168,7 @@ assertEquals( expected, transform( "testOCAuxiliary" ) ); } + @Test public void testConvertOCDesc() throws ParserException, IOException { String expected = @@ -177,6 +184,7 @@ assertEquals( expected, transform( "testOCDesc" ) ); } + @Test public void testConvertOCMayOne() throws ParserException, IOException { String expected = @@ -192,6 +200,7 @@ assertEquals( expected, transform( "testOCMayOne" ) ); } + @Test public void testConvertOCMay2() throws ParserException, IOException { String expected = @@ -208,6 +217,7 @@ assertEquals( expected, transform( "testOCMay2" ) ); } + @Test public void testConvertOCMayMany() throws ParserException, IOException { String expected = @@ -225,6 +235,7 @@ assertEquals( expected, transform( "testOCMayMany" ) ); } + @Test public void testConvertOCMustOne() throws ParserException, IOException { String expected = @@ -240,6 +251,7 @@ assertEquals( expected, transform( "testOCMustOne" ) ); } + @Test public void testConvertOCMust2() throws ParserException, IOException { String expected = @@ -256,6 +268,7 @@ assertEquals( expected, transform( "testOCMust2" ) ); } + @Test public void testConvertOCMustMany() throws ParserException, IOException { String expected = @@ -273,6 +286,7 @@ assertEquals( expected, transform( "testOCMustMany" ) ); } + @Test public void testConvertOCNameOne() throws ParserException, IOException { String expected = @@ -288,6 +302,7 @@ assertEquals( expected, transform( "testOCNameOne" ) ); } + @Test public void testConvertOCName2() throws ParserException, IOException { String expected = @@ -304,6 +319,7 @@ assertEquals( expected, transform( "testOCName2" ) ); } + @Test public void testConvertOCNameMany() throws ParserException, IOException { String expected = @@ -321,6 +337,7 @@ assertEquals( expected, transform( "testOCNameMany" ) ); } + @Test public void testConvertOCObsolete() throws ParserException, IOException { String expected = @@ -336,6 +353,7 @@ assertEquals( expected, transform( "testOCObsolete" ) ); } + @Test public void testConvertOCSupOne() throws ParserException, IOException { String expected = @@ -351,6 +369,7 @@ assertEquals( expected, transform( "testOCSupOne" ) ); } + @Test public void testConvertOCSup2() throws ParserException, IOException { String expected = @@ -367,6 +386,7 @@ assertEquals( expected, transform( "testOCSup2" ) ); } + @Test public void testConvertOCSupMany() throws ParserException, IOException { String expected = @@ -387,6 +407,7 @@ //------------------------------------------------------------------------- // Tests for Attributetype //------------------------------------------------------------------------- + @Test public void testConvertATMinimal() throws ParserException, IOException { String expected = @@ -401,6 +422,7 @@ assertEquals( expected, transform( "testATMinimal" ) ); } + @Test public void testConvertATNoName() throws ParserException, IOException { String expected = @@ -415,6 +437,7 @@ assertEquals( expected, transform( "testATNoName" ) ); } + @Test public void testConvertATNameOne() throws ParserException, IOException { String expected = @@ -430,6 +453,7 @@ assertEquals( expected, transform( "testATNameOne" ) ); } + @Test public void testConvertATName2() throws ParserException, IOException { String expected = @@ -446,6 +470,7 @@ assertEquals( expected, transform( "testATName2" ) ); } + @Test public void testConvertATNameMany() throws ParserException, IOException { String expected = @@ -463,6 +488,7 @@ assertEquals( expected, transform( "testATNameMany" ) ); } + @Test public void testConvertATDesc() throws ParserException, IOException { String expected = @@ -478,6 +504,7 @@ assertEquals( expected, transform( "testATDesc" ) ); } + @Test public void testConvertATObsolete() throws ParserException, IOException { String expected = @@ -493,6 +520,7 @@ assertEquals( expected, transform( "testATObsolete" ) ); } + @Test public void testConvertATSup() throws ParserException, IOException { String expected = @@ -508,6 +536,7 @@ assertEquals( expected, transform( "testATSup" ) ); } + @Test public void testConvertATSupOID() throws ParserException, IOException { String expected = @@ -523,6 +552,7 @@ assertEquals( expected, transform( "testATSupOID" ) ); } + @Test public void testConvertATEquality() throws ParserException, IOException { String expected = @@ -538,6 +568,7 @@ assertEquals( expected, transform( "testATEquality" ) ); } + @Test public void testConvertATEqualityOID() throws ParserException, IOException { String expected = @@ -553,6 +584,7 @@ assertEquals( expected, transform( "testATEqualityOID" ) ); } + @Test public void testConvertATOrdering() throws ParserException, IOException { String expected = @@ -568,6 +600,7 @@ assertEquals( expected, transform( "testATOrdering" ) ); } + @Test public void testConvertATOrderingOID() throws ParserException, IOException { String expected = @@ -583,6 +616,7 @@ assertEquals( expected, transform( "testATOrderingOID" ) ); } + @Test public void testConvertATSubstr() throws ParserException, IOException { String expected = @@ -598,6 +632,7 @@ assertEquals( expected, transform( "testATSubstr" ) ); } + @Test public void testConvertATSubstrOID() throws ParserException, IOException { String expected = @@ -613,6 +648,7 @@ assertEquals( expected, transform( "testATSubstrOID" ) ); } + @Test public void testConvertATSyntax() throws ParserException, IOException { String expected = @@ -628,6 +664,7 @@ assertEquals( expected, transform( "testATSyntax" ) ); } + @Test public void testConvertATSyntaxOidLen() throws ParserException, IOException { String expected = @@ -644,6 +681,7 @@ assertEquals( expected, transform( "testATSyntaxOidLen" ) ); } + @Test public void testConvertATSingleValue() throws ParserException, IOException { String expected = @@ -659,6 +697,7 @@ assertEquals( expected, transform( "testATSingleValue" ) ); } + @Test public void testConvertATCollective() throws ParserException, IOException { String expected = @@ -674,6 +713,7 @@ assertEquals( expected, transform( "testATCollective" ) ); } + @Test public void testConvertATNoUserModification() throws ParserException, IOException { String expected = @@ -689,6 +729,7 @@ assertEquals( expected, transform( "testATNoUserModification" ) ); } + @Test public void testConvertATUsageUserApp() throws ParserException, IOException { String expected = @@ -703,6 +744,7 @@ assertEquals( expected, transform( "testATUsageUserApp" ) ); } + @Test public void testConvertATUsageDirOp() throws ParserException, IOException { String expected = @@ -718,6 +760,7 @@ assertEquals( expected, transform( "testATUsageDirOp" ) ); } + @Test public void testConvertATUsageDistrOp() throws ParserException, IOException { String expected = @@ -733,6 +776,7 @@ assertEquals( expected, transform( "testATUsageDistrOp" ) ); } + @Test public void testConvertATUsageDSAOp() throws ParserException, IOException { String expected = @@ -748,6 +792,7 @@ assertEquals( expected, transform( "testATUsageDsaOp" ) ); } + @Test public void testConvertMozillaATWithOidLen() throws ParserException, IOException { String expected =