directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akaras...@apache.org
Subject svn commit: rev 35759 - in incubator/directory/snickers/trunk/ldap-ber-provider/src: java/org/apache/snickers/ldap test/org/apache/snickers/ldap/encoder/bind
Date Fri, 06 Aug 2004 00:37:56 GMT
Author: akarasulu
Date: Thu Aug  5 17:37:55 2004
New Revision: 35759

Modified:
   incubator/directory/snickers/trunk/ldap-ber-provider/src/java/org/apache/snickers/ldap/SnickersProvider.java
   incubator/directory/snickers/trunk/ldap-ber-provider/src/test/org/apache/snickers/ldap/encoder/bind/BindResponseEncoderTest.java
Log:
Commit changes ...
 
 o removed unused import to snacc provider 
 o removed code in test that created binary files of BER dumps
 


Modified: incubator/directory/snickers/trunk/ldap-ber-provider/src/java/org/apache/snickers/ldap/SnickersProvider.java
==============================================================================
--- incubator/directory/snickers/trunk/ldap-ber-provider/src/java/org/apache/snickers/ldap/SnickersProvider.java
(original)
+++ incubator/directory/snickers/trunk/ldap-ber-provider/src/java/org/apache/snickers/ldap/SnickersProvider.java
Thu Aug  5 17:37:55 2004
@@ -16,8 +16,8 @@
  */
 package org.apache.snickers.ldap;
 
+
 import org.apache.ldap.common.message.spi.*;
-import org.apache.ldap.common.berlib.snacc.SnaccProvider;
 
 
 /**

Modified: incubator/directory/snickers/trunk/ldap-ber-provider/src/test/org/apache/snickers/ldap/encoder/bind/BindResponseEncoderTest.java
==============================================================================
--- incubator/directory/snickers/trunk/ldap-ber-provider/src/test/org/apache/snickers/ldap/encoder/bind/BindResponseEncoderTest.java
(original)
+++ incubator/directory/snickers/trunk/ldap-ber-provider/src/test/org/apache/snickers/ldap/encoder/bind/BindResponseEncoderTest.java
Thu Aug  5 17:37:55 2004
@@ -60,21 +60,7 @@
         result.getReferral().addLdapUrl( "ldap://threehost:389" );
         ( ( BindResponseEncoder ) producer ).encode( resp );
 
-        MessageEncoder snaccEncoder = new MessageEncoder();
-        byte[] snaccEncoded = snaccEncoder.encode( resp );
-        File cwd = new File( "." );
-        FileOutputStream out = new FileOutputStream( new File(cwd,
-                "BindResponseEncoderTestSnacc.ber" ) );
-        out.write( snaccEncoded );
-
         collector.flip();
-        byte[] snickersEncoded = new byte[collector.remaining()];
-        collector.get( snickersEncoded );
-        collector.rewind();
-        out = new FileOutputStream( new File(cwd,
-                "BindResponseEncoderTestSnickers.ber" ) );
-        out.write( snickersEncoded );
-
         BindResponse decodedResp = ( BindResponse ) decodeEncoded( collector );
         assertEquals( resp.getMessageId(), decodedResp.getMessageId() );
         LdapResult decodedResult = decodedResp.getLdapResult();

Mime
View raw message