directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mcconn...@apache.org
Subject svn commit: rev 37185 - incubator/directory/snickers/trunk/ldap-ber-provider/src/test/org/apache/snickers/ldap/decoder/extended
Date Mon, 30 Aug 2004 06:01:12 GMT
Author: mcconnell
Date: Sun Aug 29 23:01:12 2004
New Revision: 37185

Modified:
   incubator/directory/snickers/trunk/ldap-ber-provider/src/test/org/apache/snickers/ldap/decoder/extended/ExtendedRequestRuleTest.java
Log:
doc update

Modified: incubator/directory/snickers/trunk/ldap-ber-provider/src/test/org/apache/snickers/ldap/decoder/extended/ExtendedRequestRuleTest.java
==============================================================================
--- incubator/directory/snickers/trunk/ldap-ber-provider/src/test/org/apache/snickers/ldap/decoder/extended/ExtendedRequestRuleTest.java
(original)
+++ incubator/directory/snickers/trunk/ldap-ber-provider/src/test/org/apache/snickers/ldap/decoder/extended/ExtendedRequestRuleTest.java
Sun Aug 29 23:01:12 2004
@@ -1,53 +1,53 @@
-/*
- *   Copyright 2004 The Apache Software Foundation
- *
- *   Licensed 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.snickers.ldap.decoder.extended ;
-
-
-import org.apache.ldap.common.message.* ;
-import org.apache.snickers.ldap.decoder.testutils.TestUtils ;
-import org.apache.snickers.ldap.decoder.testutils.RuleTestCase ;
-import org.apache.commons.lang.ArrayUtils;
-
-
-/**
- * Document this class.
- * 
- * @author <a href="mailto:directory-dev@incubator.apache.org">Apache Directory
- *         Project</a>
- * @version $Rev$
- */
-public class ExtendedRequestRuleTest extends RuleTestCase
-{
-    public void testCompareRequest() throws Exception
-    {
-        // build the PDU
-        ExtendedRequestImpl req = new ExtendedRequestImpl( 7 ) ;
-        req.setOid( "0.0.0.0" ) ;
-        byte[] payload = new byte[2] ;
-        payload[0] = 0x12 ;
-        payload[1] = 0x34 ;
-        req.setPayload( payload ) ;
-        System.out.println( "Generated ExtendedRequest for test:" ) ;
-        System.out.println( TestUtils.printTupleTree( req ) ) ;
-
-        ExtendedRequest decoded = ( ExtendedRequest )
-                snickersDecode( snaccEncode( req ) ) ;
-        assertEquals( req.getMessageId(), decoded.getMessageId() ) ;
-        assertEquals( req.getOid(), decoded.getOid() ) ;
-        assertTrue( ArrayUtils.isEquals( payload, decoded.getPayload() ) ) ;
-    }
-}
+/*
+ *   Copyright 2004 The Apache Software Foundation
+ *
+ *   Licensed 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.snickers.ldap.decoder.extended ;
+
+
+import org.apache.ldap.common.message.* ;
+import org.apache.snickers.ldap.decoder.testutils.TestUtils ;
+import org.apache.snickers.ldap.decoder.testutils.RuleTestCase ;
+import org.apache.commons.lang.ArrayUtils;
+
+
+/**
+ * An extended request rule test case. 
+ * 
+ * @author <a href="mailto:directory-dev@incubator.apache.org">Apache Directory
+ *         Project</a>
+ * @version $Rev$
+ */
+public class ExtendedRequestRuleTest extends RuleTestCase
+{
+    public void testCompareRequest() throws Exception
+    {
+        // build the PDU
+        ExtendedRequestImpl req = new ExtendedRequestImpl( 7 ) ;
+        req.setOid( "0.0.0.0" ) ;
+        byte[] payload = new byte[2] ;
+        payload[0] = 0x12 ;
+        payload[1] = 0x34 ;
+        req.setPayload( payload ) ;
+        System.out.println( "Generated ExtendedRequest for test:" ) ;
+        System.out.println( TestUtils.printTupleTree( req ) ) ;
+
+        ExtendedRequest decoded = ( ExtendedRequest )
+                snickersDecode( snaccEncode( req ) ) ;
+        assertEquals( req.getMessageId(), decoded.getMessageId() ) ;
+        assertEquals( req.getOid(), decoded.getOid() ) ;
+        assertTrue( ArrayUtils.isEquals( payload, decoded.getPayload() ) ) ;
+    }
+}

Mime
View raw message