directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r496185 - /directory/trunks/shared/convert/src/test/java/org/apache/directory/shared/converter/schema/TestSchemaToLdif.java
Date Sun, 14 Jan 2007 23:12:26 GMT
Author: elecharny
Date: Sun Jan 14 15:12:25 2007
New Revision: 496185

URL: http://svn.apache.org/viewvc?view=rev&rev=496185
Log:
Added some tests for AttributeType

Modified:
    directory/trunks/shared/convert/src/test/java/org/apache/directory/shared/converter/schema/TestSchemaToLdif.java

Modified: directory/trunks/shared/convert/src/test/java/org/apache/directory/shared/converter/schema/TestSchemaToLdif.java
URL: http://svn.apache.org/viewvc/directory/trunks/shared/convert/src/test/java/org/apache/directory/shared/converter/schema/TestSchemaToLdif.java?view=diff&rev=496185&r1=496184&r2=496185
==============================================================================
--- directory/trunks/shared/convert/src/test/java/org/apache/directory/shared/converter/schema/TestSchemaToLdif.java
(original)
+++ directory/trunks/shared/convert/src/test/java/org/apache/directory/shared/converter/schema/TestSchemaToLdif.java
Sun Jan 14 15:12:25 2007
@@ -71,6 +71,9 @@
         return res;
     }
 
+    //-------------------------------------------------------------------------
+    // Tests for ObjectClass
+    //-------------------------------------------------------------------------
     public void testConvertOC() throws ParserException, IOException
     {
         String expected =
@@ -78,7 +81,7 @@
             "dn: m-name=objectClass, ou=testOC, ou=schema\n" +
             "objectclass: metaObjectclass\n" +
             "objectclass: metaTop\n" +
-            "objectClass: top\n" +
+            "objectclass: top\n" +
             "m-oid: 1.3.6.1.4.1.18060.0.4.2.3.14\n" +
             "m-name: objectClass\n" +
             "m-description: An objectClass\n" +
@@ -100,7 +103,7 @@
             "dn: m-name=1.3.6.1.4.1.18060.0.4.2.3.14, ou=testOCMinimal, ou=schema\n" +
             "objectclass: metaObjectclass\n" +
             "objectclass: metaTop\n" +
-            "objectClass: top\n" +
+            "objectclass: top\n" +
             "m-oid: 1.3.6.1.4.1.18060.0.4.2.3.14\n\n";
 
         assertEquals( expected, transform( "testOCMinimal" ) );
@@ -113,7 +116,7 @@
             "dn: m-name=1.3.6.1.4.1.18060.0.4.2.3.14, ou=testOCNoName, ou=schema\n" +
             "objectclass: metaObjectclass\n" +
             "objectclass: metaTop\n" +
-            "objectClass: top\n" +
+            "objectclass: top\n" +
             "m-oid: 1.3.6.1.4.1.18060.0.4.2.3.14\n" +
             "m-description: An objectClass\n" +
             "m-obsolete: true\n" +
@@ -134,7 +137,7 @@
             "dn: m-name=1.3.6.1.4.1.18060.0.4.2.3.14, ou=testOCAbstract, ou=schema\n" +
             "objectclass: metaObjectclass\n" +
             "objectclass: metaTop\n" +
-            "objectClass: top\n" +
+            "objectclass: top\n" +
             "m-oid: 1.3.6.1.4.1.18060.0.4.2.3.14\n" +
             "m-typeObjectClass: ABSTRACT\n\n";
 
@@ -148,7 +151,7 @@
             "dn: m-name=1.3.6.1.4.1.18060.0.4.2.3.14, ou=testOCAuxiliary, ou=schema\n" +
             "objectclass: metaObjectclass\n" +
             "objectclass: metaTop\n" +
-            "objectClass: top\n" +
+            "objectclass: top\n" +
             "m-oid: 1.3.6.1.4.1.18060.0.4.2.3.14\n" +
             "m-typeObjectClass: AUXILIARY\n\n";
 
@@ -162,7 +165,7 @@
             "dn: m-name=1.3.6.1.4.1.18060.0.4.2.3.14, ou=testOCDesc, ou=schema\n" +
             "objectclass: metaObjectclass\n" +
             "objectclass: metaTop\n" +
-            "objectClass: top\n" +
+            "objectclass: top\n" +
             "m-oid: 1.3.6.1.4.1.18060.0.4.2.3.14\n" +
             "m-description: An objectClass\n\n";
 
@@ -176,7 +179,7 @@
             "dn: m-name=1.3.6.1.4.1.18060.0.4.2.3.14, ou=testOCMayOne, ou=schema\n" +
             "objectclass: metaObjectclass\n" +
             "objectclass: metaTop\n" +
-            "objectClass: top\n" +
+            "objectclass: top\n" +
             "m-oid: 1.3.6.1.4.1.18060.0.4.2.3.14\n" +
             "m-may: attr1\n\n";
 
@@ -190,7 +193,7 @@
             "dn: m-name=1.3.6.1.4.1.18060.0.4.2.3.14, ou=testOCMay2, ou=schema\n" +
             "objectclass: metaObjectclass\n" +
             "objectclass: metaTop\n" +
-            "objectClass: top\n" +
+            "objectclass: top\n" +
             "m-oid: 1.3.6.1.4.1.18060.0.4.2.3.14\n" +
             "m-may: attr1\n" +
             "m-may: attr2\n\n";
@@ -205,7 +208,7 @@
             "dn: m-name=1.3.6.1.4.1.18060.0.4.2.3.14, ou=testOCMayMany, ou=schema\n" +
             "objectclass: metaObjectclass\n" +
             "objectclass: metaTop\n" +
-            "objectClass: top\n" +
+            "objectclass: top\n" +
             "m-oid: 1.3.6.1.4.1.18060.0.4.2.3.14\n" +
             "m-may: attr1\n" +
             "m-may: attr2\n" +
@@ -221,7 +224,7 @@
             "dn: m-name=1.3.6.1.4.1.18060.0.4.2.3.14, ou=testOCMustOne, ou=schema\n" +
             "objectclass: metaObjectclass\n" +
             "objectclass: metaTop\n" +
-            "objectClass: top\n" +
+            "objectclass: top\n" +
             "m-oid: 1.3.6.1.4.1.18060.0.4.2.3.14\n" +
             "m-must: attr1\n\n";
 
@@ -235,7 +238,7 @@
             "dn: m-name=1.3.6.1.4.1.18060.0.4.2.3.14, ou=testOCMust2, ou=schema\n" +
             "objectclass: metaObjectclass\n" +
             "objectclass: metaTop\n" +
-            "objectClass: top\n" +
+            "objectclass: top\n" +
             "m-oid: 1.3.6.1.4.1.18060.0.4.2.3.14\n" +
             "m-must: attr1\n" +
             "m-must: attr2\n\n";
@@ -250,7 +253,7 @@
             "dn: m-name=1.3.6.1.4.1.18060.0.4.2.3.14, ou=testOCMustMany, ou=schema\n" +
             "objectclass: metaObjectclass\n" +
             "objectclass: metaTop\n" +
-            "objectClass: top\n" +
+            "objectclass: top\n" +
             "m-oid: 1.3.6.1.4.1.18060.0.4.2.3.14\n" +
             "m-must: attr1\n" +
             "m-must: attr2\n" +
@@ -266,7 +269,7 @@
             "dn: m-name=objectClass, ou=testOCNameOne, ou=schema\n" +
             "objectclass: metaObjectclass\n" +
             "objectclass: metaTop\n" +
-            "objectClass: top\n" +
+            "objectclass: top\n" +
             "m-oid: 1.3.6.1.4.1.18060.0.4.2.3.14\n" +
             "m-name: objectClass\n\n";
 
@@ -280,7 +283,7 @@
             "dn: m-name=oc, ou=testOCName2, ou=schema\n" +
             "objectclass: metaObjectclass\n" +
             "objectclass: metaTop\n" +
-            "objectClass: top\n" +
+            "objectclass: top\n" +
             "m-oid: 1.3.6.1.4.1.18060.0.4.2.3.14\n" +
             "m-name: oc\n" +
             "m-name: objectClass\n\n";
@@ -295,7 +298,7 @@
             "dn: m-name=oc, ou=testOCNameMany, ou=schema\n" +
             "objectclass: metaObjectclass\n" +
             "objectclass: metaTop\n" +
-            "objectClass: top\n" +
+            "objectclass: top\n" +
             "m-oid: 1.3.6.1.4.1.18060.0.4.2.3.14\n" +
             "m-name: oc\n" +
             "m-name: objectClass\n" +
@@ -311,7 +314,7 @@
             "dn: m-name=1.3.6.1.4.1.18060.0.4.2.3.14, ou=testOCObsolete, ou=schema\n" +
             "objectclass: metaObjectclass\n" +
             "objectclass: metaTop\n" +
-            "objectClass: top\n" +
+            "objectclass: top\n" +
             "m-oid: 1.3.6.1.4.1.18060.0.4.2.3.14\n" +
             "m-obsolete: true\n\n";
 
@@ -325,7 +328,7 @@
             "dn: m-name=1.3.6.1.4.1.18060.0.4.2.3.14, ou=testOCSupOne, ou=schema\n" +
             "objectclass: metaObjectclass\n" +
             "objectclass: metaTop\n" +
-            "objectClass: top\n" +
+            "objectclass: top\n" +
             "m-oid: 1.3.6.1.4.1.18060.0.4.2.3.14\n" +
             "m-supObjectClass: top\n\n";
 
@@ -339,7 +342,7 @@
             "dn: m-name=1.3.6.1.4.1.18060.0.4.2.3.14, ou=testOCSup2, ou=schema\n" +
             "objectclass: metaObjectclass\n" +
             "objectclass: metaTop\n" +
-            "objectClass: top\n" +
+            "objectclass: top\n" +
             "m-oid: 1.3.6.1.4.1.18060.0.4.2.3.14\n" +
             "m-supObjectClass: top\n" +
             "m-supObjectClass: 1.3.6.1.4.1.18060.0.4.2.3.15\n\n";
@@ -354,12 +357,351 @@
             "dn: m-name=1.3.6.1.4.1.18060.0.4.2.3.14, ou=testOCSupMany, ou=schema\n" +
             "objectclass: metaObjectclass\n" +
             "objectclass: metaTop\n" +
-            "objectClass: top\n" +
+            "objectclass: top\n" +
             "m-oid: 1.3.6.1.4.1.18060.0.4.2.3.14\n" +
             "m-supObjectClass: top\n" +
             "m-supObjectClass: 1.3.6.1.4.1.18060.0.4.2.3.15\n" +
             "m-supObjectClass: metaTop\n\n";
 
         assertEquals( expected, transform( "testOCSupMany" ) );
+    }
+    
+    //-------------------------------------------------------------------------
+    // Tests for Attributetype
+    //-------------------------------------------------------------------------
+    public void testConvertATMinimal() throws ParserException, IOException
+    {
+        String expected =
+            HEADER + 
+            "dn: m-name=1.3.6.1.4.1.18060.0.4.2.3.14, ou=testATMinimal, ou=schema\n" +
+            "objectclass: metaAttributeType\n" +
+            "objectclass: metaTop\n" +
+            "objectclass: top\n" +
+            "m-oid: 1.3.6.1.4.1.18060.0.4.2.3.14\n\n";
+
+        assertEquals( expected, transform( "testATMinimal" ) );
+    }
+    
+    public void testConvertATNoName() throws ParserException, IOException
+    {
+        String expected =
+            HEADER + 
+            "dn: m-name=1.3.6.1.4.1.18060.0.4.2.3.14, ou=testATNoName, ou=schema\n" +
+            "objectclass: metaAttributeType\n" +
+            "objectclass: metaTop\n" +
+            "objectclass: top\n" +
+            "m-oid: 1.3.6.1.4.1.18060.0.4.2.3.14\n\n";
+
+        assertEquals( expected, transform( "testATNoName" ) );
+    }
+
+    public void testConvertATNameOne() throws ParserException, IOException
+    {
+        String expected =
+            HEADER + 
+            "dn: m-name=attribute, ou=testATNameOne, ou=schema\n" +
+            "objectclass: metaAttributeType\n" +
+            "objectclass: metaTop\n" +
+            "objectclass: top\n" +
+            "m-oid: 1.3.6.1.4.1.18060.0.4.2.3.14\n" +
+            "m-name: attribute\n\n";
+
+        assertEquals( expected, transform( "testATNameOne" ) );
+    }
+
+    public void testConvertATName2() throws ParserException, IOException
+    {
+        String expected =
+            HEADER + 
+            "dn: m-name=at, ou=testATName2, ou=schema\n" +
+            "objectclass: metaAttributeType\n" +
+            "objectclass: metaTop\n" +
+            "objectclass: top\n" +
+            "m-oid: 1.3.6.1.4.1.18060.0.4.2.3.14\n" +
+            "m-name: at\n" +
+            "m-name: attribute\n\n";
+
+        assertEquals( expected, transform( "testATName2" ) );
+    }
+
+    public void testConvertATNameMany() throws ParserException, IOException
+    {
+        String expected =
+            HEADER + 
+            "dn: m-name=at, ou=testATNameMany, ou=schema\n" +
+            "objectclass: metaAttributeType\n" +
+            "objectclass: metaTop\n" +
+            "objectclass: top\n" +
+            "m-oid: 1.3.6.1.4.1.18060.0.4.2.3.14\n" +
+            "m-name: at\n" +
+            "m-name: attribute\n" +
+            "m-name: attribute2\n\n";
+
+        assertEquals( expected, transform( "testATNameMany" ) );
+    }
+
+    public void testConvertATDesc() throws ParserException, IOException
+    {
+        String expected =
+            HEADER + 
+            "dn: m-name=1.3.6.1.4.1.18060.0.4.2.3.14, ou=testATDesc, ou=schema\n" +
+            "objectclass: metaAttributeType\n" +
+            "objectclass: metaTop\n" +
+            "objectclass: top\n" +
+            "m-oid: 1.3.6.1.4.1.18060.0.4.2.3.14\n" +
+            "m-description: An attributeType\n\n";
+
+        assertEquals( expected, transform( "testATDesc" ) );
+    }
+
+    public void testConvertATObsolete() throws ParserException, IOException
+    {
+        String expected =
+            HEADER + 
+            "dn: m-name=1.3.6.1.4.1.18060.0.4.2.3.14, ou=testATObsolete, ou=schema\n" +
+            "objectclass: metaAttributeType\n" +
+            "objectclass: metaTop\n" +
+            "objectclass: top\n" +
+            "m-oid: 1.3.6.1.4.1.18060.0.4.2.3.14\n" +
+            "m-obsolete: true\n\n";
+
+        assertEquals( expected, transform( "testATObsolete" ) );
+    }
+
+    public void testConvertATSup() throws ParserException, IOException
+    {
+        String expected =
+            HEADER + 
+            "dn: m-name=1.3.6.1.4.1.18060.0.4.2.3.14, ou=testATSup, ou=schema\n" +
+            "objectclass: metaAttributeType\n" +
+            "objectclass: metaTop\n" +
+            "objectclass: top\n" +
+            "m-oid: 1.3.6.1.4.1.18060.0.4.2.3.14\n" +
+            "m-supAttributeType: anotherAttribute\n\n";
+
+        assertEquals( expected, transform( "testATSup" ) );
+    }
+
+    public void testConvertATSupOID() throws ParserException, IOException
+    {
+        String expected =
+            HEADER + 
+            "dn: m-name=1.3.6.1.4.1.18060.0.4.2.3.14, ou=testATSupOID, ou=schema\n" +
+            "objectclass: metaAttributeType\n" +
+            "objectclass: metaTop\n" +
+            "objectclass: top\n" +
+            "m-oid: 1.3.6.1.4.1.18060.0.4.2.3.14\n" +
+            "m-supAttributeType: 1.3.6.1.4.1.18060.0.4.2.3.15\n\n";
+
+        assertEquals( expected, transform( "testATSupOID" ) );
+    }
+
+    public void testConvertATEquality() throws ParserException, IOException
+    {
+        String expected =
+            HEADER + 
+            "dn: m-name=1.3.6.1.4.1.18060.0.4.2.3.14, ou=testATEquality, ou=schema\n" +
+            "objectclass: metaAttributeType\n" +
+            "objectclass: metaTop\n" +
+            "objectclass: top\n" +
+            "m-oid: 1.3.6.1.4.1.18060.0.4.2.3.14\n" +
+            "m-equality: booleanMatch\n\n";
+
+        assertEquals( expected, transform( "testATEquality" ) );
+    }
+
+    public void testConvertATEqualityOID() throws ParserException, IOException
+    {
+        String expected =
+            HEADER + 
+            "dn: m-name=1.3.6.1.4.1.18060.0.4.2.3.14, ou=testATEqualityOID, ou=schema\n"
+
+            "objectclass: metaAttributeType\n" +
+            "objectclass: metaTop\n" +
+            "objectclass: top\n" +
+            "m-oid: 1.3.6.1.4.1.18060.0.4.2.3.14\n" +
+            "m-equality: 1.3.6.1.4.1.18060.0.4.2.3.15\n\n";
+
+        assertEquals( expected, transform( "testATEqualityOID" ) );
+    }
+
+    public void testConvertATOrdering() throws ParserException, IOException
+    {
+        String expected =
+            HEADER + 
+            "dn: m-name=1.3.6.1.4.1.18060.0.4.2.3.14, ou=testATOrdering, ou=schema\n" +
+            "objectclass: metaAttributeType\n" +
+            "objectclass: metaTop\n" +
+            "objectclass: top\n" +
+            "m-oid: 1.3.6.1.4.1.18060.0.4.2.3.14\n" +
+            "m-ordering: booleanMatch\n\n";
+
+        assertEquals( expected, transform( "testATOrdering" ) );
+    }
+
+    public void testConvertATOrderingOID() throws ParserException, IOException
+    {
+        String expected =
+            HEADER + 
+            "dn: m-name=1.3.6.1.4.1.18060.0.4.2.3.14, ou=testATOrderingOID, ou=schema\n"
+
+            "objectclass: metaAttributeType\n" +
+            "objectclass: metaTop\n" +
+            "objectclass: top\n" +
+            "m-oid: 1.3.6.1.4.1.18060.0.4.2.3.14\n" +
+            "m-ordering: 1.3.6.1.4.1.18060.0.4.2.3.15\n\n";
+
+        assertEquals( expected, transform( "testATOrderingOID" ) );
+    }
+
+    public void testConvertATSubstr() throws ParserException, IOException
+    {
+        String expected =
+            HEADER + 
+            "dn: m-name=1.3.6.1.4.1.18060.0.4.2.3.14, ou=testATSubstr, ou=schema\n" +
+            "objectclass: metaAttributeType\n" +
+            "objectclass: metaTop\n" +
+            "objectclass: top\n" +
+            "m-oid: 1.3.6.1.4.1.18060.0.4.2.3.14\n" +
+            "m-substr: booleanMatch\n\n";
+
+        assertEquals( expected, transform( "testATSubstr" ) );
+    }
+
+    public void testConvertATSubstrOID() throws ParserException, IOException
+    {
+        String expected =
+            HEADER + 
+            "dn: m-name=1.3.6.1.4.1.18060.0.4.2.3.14, ou=testATSubstrOID, ou=schema\n" +
+            "objectclass: metaAttributeType\n" +
+            "objectclass: metaTop\n" +
+            "objectclass: top\n" +
+            "m-oid: 1.3.6.1.4.1.18060.0.4.2.3.14\n" +
+            "m-substr: 1.3.6.1.4.1.18060.0.4.2.3.15\n\n";
+
+        assertEquals( expected, transform( "testATSubstrOID" ) );
+    }
+
+    public void testConvertATSyntax() throws ParserException, IOException
+    {
+        String expected =
+            HEADER + 
+            "dn: m-name=1.3.6.1.4.1.18060.0.4.2.3.14, ou=testATSyntax, ou=schema\n" +
+            "objectclass: metaAttributeType\n" +
+            "objectclass: metaTop\n" +
+            "objectclass: top\n" +
+            "m-oid: 1.3.6.1.4.1.18060.0.4.2.3.14\n" +
+            "m-syntax: 1.3.6.1.4.1.18060.0.4.2.3.15\n\n";
+
+        assertEquals( expected, transform( "testATSyntax" ) );
+    }
+
+    public void testConvertATSyntaxOidLen() throws ParserException, IOException
+    {
+        String expected =
+            HEADER + 
+            "dn: m-name=1.3.6.1.4.1.18060.0.4.2.3.14, ou=testATSyntaxOidLen, ou=schema\n"
+
+            "objectclass: metaAttributeType\n" +
+            "objectclass: metaTop\n" +
+            "objectclass: top\n" +
+            "m-oid: 1.3.6.1.4.1.18060.0.4.2.3.14\n" +
+            "m-syntax: 1.3.6.1.4.1.18060.0.4.2.3.15{123}\n\n";
+
+        assertEquals( expected, transform( "testATSyntaxOidLen" ) );
+    }
+
+    public void testConvertATSingleValue() throws ParserException, IOException
+    {
+        String expected =
+            HEADER + 
+            "dn: m-name=1.3.6.1.4.1.18060.0.4.2.3.14, ou=testATSingleValue, ou=schema\n"
+
+            "objectclass: metaAttributeType\n" +
+            "objectclass: metaTop\n" +
+            "objectclass: top\n" +
+            "m-oid: 1.3.6.1.4.1.18060.0.4.2.3.14\n" +
+            "m-singleValue: true\n\n";
+
+        assertEquals( expected, transform( "testATSingleValue" ) );
+    }
+
+    public void testConvertATCollective() throws ParserException, IOException
+    {
+        String expected =
+            HEADER + 
+            "dn: m-name=1.3.6.1.4.1.18060.0.4.2.3.14, ou=testATCollective, ou=schema\n" +
+            "objectclass: metaAttributeType\n" +
+            "objectclass: metaTop\n" +
+            "objectclass: top\n" +
+            "m-oid: 1.3.6.1.4.1.18060.0.4.2.3.14\n" +
+            "m-collective: true\n\n";
+
+        assertEquals( expected, transform( "testATCollective" ) );
+    }
+
+    public void testConvertATNoUserModification() throws ParserException, IOException
+    {
+        String expected =
+            HEADER + 
+            "dn: m-name=1.3.6.1.4.1.18060.0.4.2.3.14, ou=testATNoUserModification, ou=schema\n"
+
+            "objectclass: metaAttributeType\n" +
+            "objectclass: metaTop\n" +
+            "objectclass: top\n" +
+            "m-oid: 1.3.6.1.4.1.18060.0.4.2.3.14\n" +
+            "m-noUserModification: true\n\n";
+
+        assertEquals( expected, transform( "testATNoUserModification" ) );
+    }
+
+    public void testConvertATUsageUserApp() throws ParserException, IOException
+    {
+        String expected =
+            HEADER + 
+            "dn: m-name=1.3.6.1.4.1.18060.0.4.2.3.14, ou=testATUsageUserApp, ou=schema\n"
+
+            "objectclass: metaAttributeType\n" +
+            "objectclass: metaTop\n" +
+            "objectclass: top\n" +
+            "m-oid: 1.3.6.1.4.1.18060.0.4.2.3.14\n\n";
+
+        assertEquals( expected, transform( "testATUsageUserApp" ) );
+    }
+
+    public void testConvertATUsageDirOp() throws ParserException, IOException
+    {
+        String expected =
+            HEADER + 
+            "dn: m-name=1.3.6.1.4.1.18060.0.4.2.3.14, ou=testATUsageDirOp, ou=schema\n" +
+            "objectclass: metaAttributeType\n" +
+            "objectclass: metaTop\n" +
+            "objectclass: top\n" +
+            "m-oid: 1.3.6.1.4.1.18060.0.4.2.3.14\n" +
+            "m-usage: directoryOperation\n\n";
+
+        assertEquals( expected, transform( "testATUsageDirOp" ) );
+    }
+
+    public void testConvertATUsageDistrOp() throws ParserException, IOException
+    {
+        String expected =
+            HEADER + 
+            "dn: m-name=1.3.6.1.4.1.18060.0.4.2.3.14, ou=testATUsageDistrOp, ou=schema\n"
+
+            "objectclass: metaAttributeType\n" +
+            "objectclass: metaTop\n" +
+            "objectclass: top\n" +
+            "m-oid: 1.3.6.1.4.1.18060.0.4.2.3.14\n" +
+            "m-usage: distributedOperation\n\n";
+
+        assertEquals( expected, transform( "testATUsageDistrOp" ) );
+    }
+
+    public void testConvertATUsageDSAOp() throws ParserException, IOException
+    {
+        String expected =
+            HEADER + 
+            "dn: m-name=1.3.6.1.4.1.18060.0.4.2.3.14, ou=testATUsageDsaOp, ou=schema\n" +
+            "objectclass: metaAttributeType\n" +
+            "objectclass: metaTop\n" +
+            "objectclass: top\n" +
+            "m-oid: 1.3.6.1.4.1.18060.0.4.2.3.14\n" +
+            "m-usage: dSAOperation\n\n";
+
+        assertEquals( expected, transform( "testATUsageDsaOp" ) );
     }
 }



Mime
View raw message