You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@directory.apache.org by ak...@apache.org on 2011/01/29 15:40:25 UTC
svn commit: r1065024 - in
/directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/codec:
TestCodecControl.java TestControl.java TestControlFactory.java
TestLdapCodecService.java
Author: akarasulu
Date: Sat Jan 29 14:40:24 2011
New Revision: 1065024
URL: http://svn.apache.org/viewvc?rev=1065024&view=rev
Log:
fixing tests
Modified:
directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/codec/TestCodecControl.java
directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/codec/TestControl.java
directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/codec/TestControlFactory.java
directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/codec/TestLdapCodecService.java
Modified: directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/codec/TestCodecControl.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/codec/TestCodecControl.java?rev=1065024&r1=1065023&r2=1065024&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/codec/TestCodecControl.java (original)
+++ directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/codec/TestCodecControl.java Sat Jan 29 14:40:24 2011
@@ -3,6 +3,8 @@ package org.apache.directory.shared.ldap
import java.nio.ByteBuffer;
+import org.apache.directory.shared.asn1.Asn1Object;
+import org.apache.directory.shared.asn1.DecoderException;
import org.apache.directory.shared.asn1.EncoderException;
@@ -49,4 +51,23 @@ public class TestCodecControl implements
{
decorated.setFoo( foo );
}
+
+ public Asn1Object decode( byte[] controlBytes ) throws DecoderException
+ {
+ return null;
+ }
+
+ public boolean hasValue()
+ {
+ return false;
+ }
+
+ public byte[] getValue()
+ {
+ return null;
+ }
+
+ public void setValue( byte[] value )
+ {
+ }
}
\ No newline at end of file
Modified: directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/codec/TestControl.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/codec/TestControl.java?rev=1065024&r1=1065023&r2=1065024&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/codec/TestControl.java (original)
+++ directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/codec/TestControl.java Sat Jan 29 14:40:24 2011
@@ -1,3 +1,22 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.directory.shared.ldap.codec;
Modified: directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/codec/TestControlFactory.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/codec/TestControlFactory.java?rev=1065024&r1=1065023&r2=1065024&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/codec/TestControlFactory.java (original)
+++ directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/codec/TestControlFactory.java Sat Jan 29 14:40:24 2011
@@ -1,6 +1,28 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.directory.shared.ldap.codec;
+import org.apache.directory.shared.ldap.model.message.Control;
+
+
public class TestControlFactory implements IControlFactory<ITestControl,ITestCodecControl>
{
public String getOid()
@@ -17,4 +39,9 @@ public class TestControlFactory implemen
{
return new TestCodecControl();
}
+
+ public ITestCodecControl decorate( Control control )
+ {
+ return null;
+ }
}
\ No newline at end of file
Modified: directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/codec/TestLdapCodecService.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/codec/TestLdapCodecService.java?rev=1065024&r1=1065023&r2=1065024&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/codec/TestLdapCodecService.java (original)
+++ directory/shared/trunk/ldap/src/test/java/org/apache/directory/shared/ldap/codec/TestLdapCodecService.java Sat Jan 29 14:40:24 2011
@@ -1,3 +1,22 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you 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.directory.shared.ldap.codec;
@@ -109,4 +128,16 @@ public class TestLdapCodecService implem
{
return null;
}
+
+
+ public <E> E newControl( String oid )
+ {
+ return null;
+ }
+
+
+ public ICodecControl<? extends Control> decorate( Control control )
+ {
+ return null;
+ }
}
\ No newline at end of file