directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From akaras...@apache.org
Subject svn commit: r379008 [10/11] - in /directory/trunks/shared: ./ asn1/ asn1/src/main/java/org/apache/directory/shared/asn1/ asn1/src/main/java/org/apache/directory/shared/asn1/ber/ asn1/src/main/java/org/apache/directory/shared/asn1/ber/grammar/ asn1/src/...
Date Mon, 20 Feb 2006 03:36:53 GMT
Propchange: directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/codec/modifyDn/ModifyDNResponseTest.java
------------------------------------------------------------------------------
--- svn:keywords (added)
+++ svn:keywords Sun Feb 19 19:35:07 2006
@@ -0,0 +1,4 @@
+Rev
+Revision
+Date
+Id

Propchange: directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/codec/search/SearchRequestMatchingRuleAssertionTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/codec/search/SearchRequestMatchingRuleAssertionTest.java
------------------------------------------------------------------------------
--- svn:keywords (added)
+++ svn:keywords Sun Feb 19 19:35:07 2006
@@ -0,0 +1,4 @@
+Rev
+Revision
+Date
+Id

Propchange: directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/codec/search/SearchRequestSubstringTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/codec/search/SearchRequestSubstringTest.java
------------------------------------------------------------------------------
--- svn:keywords (added)
+++ svn:keywords Sun Feb 19 19:35:07 2006
@@ -0,0 +1,4 @@
+Rev
+Revision
+Date
+Id

Propchange: directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/codec/search/SearchRequestTest.java
------------------------------------------------------------------------------
--- svn:keywords (added)
+++ svn:keywords Sun Feb 19 19:35:07 2006
@@ -0,0 +1,4 @@
+Rev
+Revision
+Date
+Id

Propchange: directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/codec/search/SearchResultDoneTest.java
------------------------------------------------------------------------------
--- svn:keywords (added)
+++ svn:keywords Sun Feb 19 19:35:07 2006
@@ -0,0 +1,4 @@
+Rev
+Revision
+Date
+Id

Propchange: directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/codec/search/SearchResultEntryTest.java
------------------------------------------------------------------------------
--- svn:keywords (added)
+++ svn:keywords Sun Feb 19 19:35:07 2006
@@ -0,0 +1,4 @@
+Rev
+Revision
+Date
+Id

Propchange: directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/codec/search/SearchResultReferenceTest.java
------------------------------------------------------------------------------
--- svn:keywords (added)
+++ svn:keywords Sun Feb 19 19:35:07 2006
@@ -0,0 +1,4 @@
+Rev
+Revision
+Date
+Id

Propchange: directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/codec/search/controls/EntryChangeControlTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/codec/search/controls/EntryChangeControlTest.java
------------------------------------------------------------------------------
--- svn:keywords (added)
+++ svn:keywords Sun Feb 19 19:35:07 2006
@@ -0,0 +1,4 @@
+Rev
+Revision
+Date
+Id

Propchange: directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/codec/search/controls/PSearchControlTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/codec/search/controls/PSearchControlTest.java
------------------------------------------------------------------------------
--- svn:keywords (added)
+++ svn:keywords Sun Feb 19 19:35:07 2006
@@ -0,0 +1,4 @@
+Rev
+Revision
+Date
+Id

Propchange: directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/codec/search/controls/SubEntryControlTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/codec/search/controls/SubEntryControlTest.java
------------------------------------------------------------------------------
--- svn:keywords (added)
+++ svn:keywords Sun Feb 19 19:35:07 2006
@@ -0,0 +1,4 @@
+Rev
+Revision
+Date
+Id

Propchange: directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/codec/unbind/UnBindRequestTest.java
------------------------------------------------------------------------------
--- svn:keywords (added)
+++ svn:keywords Sun Feb 19 19:35:07 2006
@@ -0,0 +1,4 @@
+Rev
+Revision
+Date
+Id

Propchange: directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/codec/util/DNUtilsTest.java
------------------------------------------------------------------------------
--- svn:keywords (added)
+++ svn:keywords Sun Feb 19 19:35:07 2006
@@ -0,0 +1,4 @@
+Rev
+Revision
+Date
+Id

Propchange: directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/codec/util/LdapStringTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/codec/util/LdapStringTest.java
------------------------------------------------------------------------------
--- svn:keywords (added)
+++ svn:keywords Sun Feb 19 19:35:07 2006
@@ -0,0 +1,4 @@
+Rev
+Revision
+Date
+Id

Propchange: directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/codec/util/LdapUrlTest.java
------------------------------------------------------------------------------
--- svn:keywords (added)
+++ svn:keywords Sun Feb 19 19:35:07 2006
@@ -0,0 +1,4 @@
+Rev
+Revision
+Date
+Id

Propchange: directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/filter/BranchNormalizedVisitorTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/filter/BranchNormalizedVisitorTest.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sun Feb 19 19:35:07 2006
@@ -1 +1,4 @@
 Rev
+Revision
+Date
+Id

Propchange: directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/filter/FilterParserImplTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/filter/FilterParserImplTest.java
------------------------------------------------------------------------------
--- svn:keywords (added)
+++ svn:keywords Sun Feb 19 19:35:07 2006
@@ -0,0 +1,4 @@
+Rev
+Revision
+Date
+Id

Propchange: directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/ldif/LdifParserImplTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/ldif/LdifParserImplTest.java
------------------------------------------------------------------------------
--- svn:keywords (added)
+++ svn:keywords Sun Feb 19 19:35:07 2006
@@ -0,0 +1,4 @@
+Rev
+Revision
+Date
+Id

Propchange: directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/message/AbstractMessageTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/message/AbstractMessageTest.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sun Feb 19 19:35:07 2006
@@ -1 +1,4 @@
 Rev
+Revision
+Date
+Id

Propchange: directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/message/AbstractResultResponseTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/message/AbstractResultResponseTest.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sun Feb 19 19:35:07 2006
@@ -1 +1,4 @@
 Rev
+Revision
+Date
+Id

Propchange: directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/message/AddRequestImplTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/message/AddRequestImplTest.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sun Feb 19 19:35:07 2006
@@ -1 +1,4 @@
 Rev
+Revision
+Date
+Id

Propchange: directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/message/ArrayNamingEnumerationTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/message/ArrayNamingEnumerationTest.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sun Feb 19 19:35:07 2006
@@ -1 +1,4 @@
 Rev
+Revision
+Date
+Id

Propchange: directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/message/BindRequestImplTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/message/BindRequestImplTest.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sun Feb 19 19:35:07 2006
@@ -1 +1,4 @@
 Rev
+Revision
+Date
+Id

Propchange: directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/message/BindResponseImplTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/message/BindResponseImplTest.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sun Feb 19 19:35:07 2006
@@ -1 +1,4 @@
 Rev
+Revision
+Date
+Id

Modified: directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/message/CompareRequestImplTest.java
URL: http://svn.apache.org/viewcvs/directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/message/CompareRequestImplTest.java?rev=379008&r1=379007&r2=379008&view=diff
==============================================================================
--- directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/message/CompareRequestImplTest.java
(original)
+++ directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/message/CompareRequestImplTest.java
Sun Feb 19 19:35:07 2006
@@ -1,255 +1,255 @@
-/*
- *   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.directory.shared.ldap.message;
-
-
-import junit.framework.TestCase;
-
-import java.util.Collections;
-import java.util.Map;
-
-import org.apache.directory.shared.ldap.message.AbandonListener;
-import org.apache.directory.shared.ldap.message.CompareRequest;
-import org.apache.directory.shared.ldap.message.CompareRequestImpl;
-import org.apache.directory.shared.ldap.message.Control;
-import org.apache.directory.shared.ldap.message.MessageException;
-import org.apache.directory.shared.ldap.message.MessageTypeEnum;
-import org.apache.directory.shared.ldap.message.ResultResponse;
-
-
-/**
- * TestCase for the CompareRequestImpl class.
- * 
- * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
- * @version $Rev$
- */
-public class CompareRequestImplTest extends TestCase
-{
-    /**
-     * Tests the same object referrence for equality.
-     */
-    public void testEqualsSameObj()
-    {
-        CompareRequestImpl req = new CompareRequestImpl( 5 );
-        assertTrue( req.equals( req ) );
-    }
-
-
-    /**
-     * Tests for equality using exact copies.
-     */
-    public void testEqualsExactCopy()
-    {
-        CompareRequestImpl req0 = new CompareRequestImpl( 5 );
-        req0.setName( "cn=admin,dc=example,dc=com" );
-        req0.setAttributeId( "objectClass" );
-        req0.setAssertionValue( "top" );
-
-        CompareRequestImpl req1 = new CompareRequestImpl( 5 );
-        req1.setName( "cn=admin,dc=example,dc=com" );
-        req1.setAttributeId( "objectClass" );
-        req1.setAssertionValue( "top" );
-
-        assertTrue( req0.equals( req1 ) );
-        assertTrue( req1.equals( req0 ) );
-    }
-
-
-    /**
-     * Test for inequality when only the IDs are different.
-     */
-    public void testNotEqualDiffId()
-    {
-        CompareRequestImpl req0 = new CompareRequestImpl( 7 );
-        req0.setName( "cn=admin,dc=example,dc=com" );
-
-        CompareRequestImpl req1 = new CompareRequestImpl( 5 );
-        req1.setName( "cn=admin,dc=example,dc=com" );
-
-        assertFalse( req0.equals( req1 ) );
-        assertFalse( req1.equals( req0 ) );
-    }
-
-
-    /**
-     * Test for inequality when only the attributeIds are different.
-     */
-    public void testNotEqualDiffAttributeIds()
-    {
-        CompareRequestImpl req0 = new CompareRequestImpl( 5 );
-        req0.setName( "cn=admin,dc=apache,dc=org" );
-        req0.setAttributeId( "dc" );
-        req0.setAssertionValue( "apache.org" );
-
-        CompareRequestImpl req1 = new CompareRequestImpl( 5 );
-        req1.setName( "cn=admin,dc=apache,dc=org" );
-        req1.setAttributeId( "nisDomain" );
-        req1.setAssertionValue( "apache.org" );
-
-        assertFalse( req0.equals( req1 ) );
-        assertFalse( req1.equals( req0 ) );
-    }
-
-
-    /**
-     * Test for inequality when only the Assertion values are different.
-     */
-    public void testNotEqualDiffValue()
-    {
-        CompareRequestImpl req0 = new CompareRequestImpl( 5 );
-        req0.setName( "cn=admin,dc=apache,dc=org" );
-        req0.setAttributeId( "dc" );
-        req0.setAssertionValue( "apache.org" );
-
-        CompareRequestImpl req1 = new CompareRequestImpl( 5 );
-        req1.setName( "cn=admin,dc=apache,dc=org" );
-        req1.setAttributeId( "dc" );
-        req1.setAssertionValue( "nagoya.apache.org" );
-
-        assertFalse( req0.equals( req1 ) );
-        assertFalse( req1.equals( req0 ) );
-    }
-
-
-    /**
-     * Tests for equality even when another CompareRequest implementation is
-     * used.
-     */
-    public void testEqualsDiffImpl()
-    {
-        CompareRequest req0 = new CompareRequest()
-        {
-            public byte[] getAssertionValue()
-            {
-                return null;
-            }
-
-
-            public void setAssertionValue( String value )
-            {
-
-            }
-
-
-            public void setAssertionValue( byte[] value )
-            {
-
-            }
-
-
-            public String getAttributeId()
-            {
-                return null;
-            }
-
-
-            public void setAttributeId( String attrId )
-            {
-
-            }
-
-
-            public String getName()
-            {
-                return null;
-            }
-
-
-            public void setName( String a_name )
-            {
-            }
-
-
-            public MessageTypeEnum getResponseType()
-            {
-                return MessageTypeEnum.COMPARERESPONSE;
-            }
-
-
-            public boolean hasResponse()
-            {
-                return true;
-            }
-
-
-            public MessageTypeEnum getType()
-            {
-                return MessageTypeEnum.COMPAREREQUEST;
-            }
-
-
-            public Map getControls()
-            {
-                return Collections.EMPTY_MAP;
-            }
-
-
-            public void add( Control a_control ) throws MessageException
-            {
-            }
-
-
-            public void remove( Control a_control ) throws MessageException
-            {
-            }
-
-
-            public int getMessageId()
-            {
-                return 5;
-            }
-
-
-            public Object get( Object a_key )
-            {
-                return null;
-            }
-
-
-            public Object put( Object a_key, Object a_value )
-            {
-                return null;
-            }
-
-
-            public void abandon()
-            {
-            }
-
-
-            public boolean isAbandoned()
-            {
-                return false;
-            }
-
-
-            public void addAbandonListener( AbandonListener listener )
-            {
-            }
-
-
-            public ResultResponse getResultResponse()
-            {
-                return null;
-            }
-        };
-
-        CompareRequestImpl req1 = new CompareRequestImpl( 5 );
-        assertTrue( req1.equals( req0 ) );
-        assertFalse( req0.equals( req1 ) );
-    }
-}
+/*
+ *   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.directory.shared.ldap.message;
+
+
+import junit.framework.TestCase;
+
+import java.util.Collections;
+import java.util.Map;
+
+import org.apache.directory.shared.ldap.message.AbandonListener;
+import org.apache.directory.shared.ldap.message.CompareRequest;
+import org.apache.directory.shared.ldap.message.CompareRequestImpl;
+import org.apache.directory.shared.ldap.message.Control;
+import org.apache.directory.shared.ldap.message.MessageException;
+import org.apache.directory.shared.ldap.message.MessageTypeEnum;
+import org.apache.directory.shared.ldap.message.ResultResponse;
+
+
+/**
+ * TestCase for the CompareRequestImpl class.
+ * 
+ * @author <a href="mailto:dev@directory.apache.org">Apache Directory Project</a>
+ * @version $Rev$
+ */
+public class CompareRequestImplTest extends TestCase
+{
+    /**
+     * Tests the same object referrence for equality.
+     */
+    public void testEqualsSameObj()
+    {
+        CompareRequestImpl req = new CompareRequestImpl( 5 );
+        assertTrue( req.equals( req ) );
+    }
+
+
+    /**
+     * Tests for equality using exact copies.
+     */
+    public void testEqualsExactCopy()
+    {
+        CompareRequestImpl req0 = new CompareRequestImpl( 5 );
+        req0.setName( "cn=admin,dc=example,dc=com" );
+        req0.setAttributeId( "objectClass" );
+        req0.setAssertionValue( "top" );
+
+        CompareRequestImpl req1 = new CompareRequestImpl( 5 );
+        req1.setName( "cn=admin,dc=example,dc=com" );
+        req1.setAttributeId( "objectClass" );
+        req1.setAssertionValue( "top" );
+
+        assertTrue( req0.equals( req1 ) );
+        assertTrue( req1.equals( req0 ) );
+    }
+
+
+    /**
+     * Test for inequality when only the IDs are different.
+     */
+    public void testNotEqualDiffId()
+    {
+        CompareRequestImpl req0 = new CompareRequestImpl( 7 );
+        req0.setName( "cn=admin,dc=example,dc=com" );
+
+        CompareRequestImpl req1 = new CompareRequestImpl( 5 );
+        req1.setName( "cn=admin,dc=example,dc=com" );
+
+        assertFalse( req0.equals( req1 ) );
+        assertFalse( req1.equals( req0 ) );
+    }
+
+
+    /**
+     * Test for inequality when only the attributeIds are different.
+     */
+    public void testNotEqualDiffAttributeIds()
+    {
+        CompareRequestImpl req0 = new CompareRequestImpl( 5 );
+        req0.setName( "cn=admin,dc=apache,dc=org" );
+        req0.setAttributeId( "dc" );
+        req0.setAssertionValue( "apache.org" );
+
+        CompareRequestImpl req1 = new CompareRequestImpl( 5 );
+        req1.setName( "cn=admin,dc=apache,dc=org" );
+        req1.setAttributeId( "nisDomain" );
+        req1.setAssertionValue( "apache.org" );
+
+        assertFalse( req0.equals( req1 ) );
+        assertFalse( req1.equals( req0 ) );
+    }
+
+
+    /**
+     * Test for inequality when only the Assertion values are different.
+     */
+    public void testNotEqualDiffValue()
+    {
+        CompareRequestImpl req0 = new CompareRequestImpl( 5 );
+        req0.setName( "cn=admin,dc=apache,dc=org" );
+        req0.setAttributeId( "dc" );
+        req0.setAssertionValue( "apache.org" );
+
+        CompareRequestImpl req1 = new CompareRequestImpl( 5 );
+        req1.setName( "cn=admin,dc=apache,dc=org" );
+        req1.setAttributeId( "dc" );
+        req1.setAssertionValue( "nagoya.apache.org" );
+
+        assertFalse( req0.equals( req1 ) );
+        assertFalse( req1.equals( req0 ) );
+    }
+
+
+    /**
+     * Tests for equality even when another CompareRequest implementation is
+     * used.
+     */
+    public void testEqualsDiffImpl()
+    {
+        CompareRequest req0 = new CompareRequest()
+        {
+            public byte[] getAssertionValue()
+            {
+                return null;
+            }
+
+
+            public void setAssertionValue( String value )
+            {
+
+            }
+
+
+            public void setAssertionValue( byte[] value )
+            {
+
+            }
+
+
+            public String getAttributeId()
+            {
+                return null;
+            }
+
+
+            public void setAttributeId( String attrId )
+            {
+
+            }
+
+
+            public String getName()
+            {
+                return null;
+            }
+
+
+            public void setName( String a_name )
+            {
+            }
+
+
+            public MessageTypeEnum getResponseType()
+            {
+                return MessageTypeEnum.COMPARERESPONSE;
+            }
+
+
+            public boolean hasResponse()
+            {
+                return true;
+            }
+
+
+            public MessageTypeEnum getType()
+            {
+                return MessageTypeEnum.COMPAREREQUEST;
+            }
+
+
+            public Map getControls()
+            {
+                return Collections.EMPTY_MAP;
+            }
+
+
+            public void add( Control a_control ) throws MessageException
+            {
+            }
+
+
+            public void remove( Control a_control ) throws MessageException
+            {
+            }
+
+
+            public int getMessageId()
+            {
+                return 5;
+            }
+
+
+            public Object get( Object a_key )
+            {
+                return null;
+            }
+
+
+            public Object put( Object a_key, Object a_value )
+            {
+                return null;
+            }
+
+
+            public void abandon()
+            {
+            }
+
+
+            public boolean isAbandoned()
+            {
+                return false;
+            }
+
+
+            public void addAbandonListener( AbandonListener listener )
+            {
+            }
+
+
+            public ResultResponse getResultResponse()
+            {
+                return null;
+            }
+        };
+
+        CompareRequestImpl req1 = new CompareRequestImpl( 5 );
+        assertTrue( req1.equals( req0 ) );
+        assertFalse( req0.equals( req1 ) );
+    }
+}

Propchange: directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/message/CompareRequestImplTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/message/CompareRequestImplTest.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sun Feb 19 19:35:07 2006
@@ -1 +1,4 @@
 Rev
+Revision
+Date
+Id

Propchange: directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/message/DeleteRequestImplTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/message/DeleteRequestImplTest.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sun Feb 19 19:35:07 2006
@@ -1 +1,4 @@
 Rev
+Revision
+Date
+Id

Propchange: directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/message/ExtendedRequestImplTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/message/ExtendedRequestImplTest.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sun Feb 19 19:35:07 2006
@@ -1 +1,4 @@
 Rev
+Revision
+Date
+Id

Propchange: directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/message/ExtendedResponseImplTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/message/ExtendedResponseImplTest.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sun Feb 19 19:35:07 2006
@@ -1 +1,4 @@
 Rev
+Revision
+Date
+Id

Propchange: directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/message/LdapResultImplTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/message/LdapResultImplTest.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sun Feb 19 19:35:07 2006
@@ -1 +1,4 @@
 Rev
+Revision
+Date
+Id

Propchange: directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/message/LockableAttributeImplTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/message/LockableAttributeImplTest.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sun Feb 19 19:35:07 2006
@@ -1 +1,4 @@
 Rev
+Revision
+Date
+Id

Propchange: directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/message/LockableAttributesImplTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/message/LockableAttributesImplTest.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sun Feb 19 19:35:07 2006
@@ -1 +1,4 @@
 Rev
+Revision
+Date
+Id

Propchange: directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/message/ModifyDnRequestImplTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/message/ModifyDnRequestImplTest.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sun Feb 19 19:35:07 2006
@@ -1 +1,4 @@
 Rev
+Revision
+Date
+Id

Propchange: directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/message/ModifyRequestImplTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/message/ModifyRequestImplTest.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sun Feb 19 19:35:07 2006
@@ -1 +1,4 @@
 Rev
+Revision
+Date
+Id

Propchange: directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/message/ReferralImplTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/message/ReferralImplTest.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sun Feb 19 19:35:07 2006
@@ -1 +1,4 @@
 Rev
+Revision
+Date
+Id

Propchange: directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/message/SearchResponseDoneImplTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/message/SearchResponseDoneImplTest.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sun Feb 19 19:35:07 2006
@@ -1 +1,4 @@
 Rev
+Revision
+Date
+Id

Propchange: directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/message/SearchResponseEntryImplTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/message/SearchResponseEntryImplTest.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sun Feb 19 19:35:07 2006
@@ -1 +1,4 @@
 Rev
+Revision
+Date
+Id

Propchange: directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/message/SearchResponseReferenceImplTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/message/SearchResponseReferenceImplTest.java
------------------------------------------------------------------------------
--- svn:keywords (original)
+++ svn:keywords Sun Feb 19 19:35:07 2006
@@ -1 +1,4 @@
 Rev
+Revision
+Date
+Id

Propchange: directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/name/AttributeTypeAndValueTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/name/AttributeTypeAndValueTest.java
------------------------------------------------------------------------------
--- svn:keywords (added)
+++ svn:keywords Sun Feb 19 19:35:07 2006
@@ -0,0 +1,4 @@
+Rev
+Revision
+Date
+Id

Propchange: directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/name/DnParserTest.java
------------------------------------------------------------------------------
--- svn:keywords (added)
+++ svn:keywords Sun Feb 19 19:35:07 2006
@@ -0,0 +1,4 @@
+Rev
+Revision
+Date
+Id

Propchange: directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/name/LdapDNTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/name/LdapDNTest.java
------------------------------------------------------------------------------
--- svn:keywords (added)
+++ svn:keywords Sun Feb 19 19:35:07 2006
@@ -0,0 +1,4 @@
+Rev
+Revision
+Date
+Id

Modified: directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/name/LdapDnParserTest.java
URL: http://svn.apache.org/viewcvs/directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/name/LdapDnParserTest.java?rev=379008&r1=379007&r2=379008&view=diff
==============================================================================
--- directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/name/LdapDnParserTest.java
(original)
+++ directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/name/LdapDnParserTest.java
Sun Feb 19 19:35:07 2006
@@ -522,4 +522,30 @@
         assertEquals( cn, result.toString() );
 
     }
+
+    /**
+     * Test to check that even with a non escaped char, the DN is parsed ok
+     * or at least an error is generated. 
+     * 
+     * @throws NamingException
+     *             if anything goes wrong on parse()
+     */
+    public final void testNonEscapedChars() throws NamingException
+    {
+        NameParser parser = LdapDnParser.getNameParser();
+        String input = "ou=ou=test";
+        
+        try
+        {
+            parser.parse( input ).toString();
+        }
+        catch ( NamingException ne )
+        {
+            assertTrue( true );
+            return;
+        }
+        
+        fail( "Should never rech this point" );
+    }
+
 }

Propchange: directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/name/LdapDnParserTest.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: directory/trunks/shared/ldap/src/test/java/org/apache/directory/shared/ldap/name/LdapDnParserTest.java
------------------------------------------------------------------------------
--- svn:keywords (added)
+++ svn:keywords Sun Feb 19 19:35:07 2006
@@ -0,0 +1,4 @@
+Rev
+Revision
+Date
+Id



Mime
View raw message