directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From elecha...@apache.org
Subject svn commit: r1425133 - in /directory/apacheds/trunk/xdbm-partition/src/test/java/org/apache/directory/server/xdbm/search/impl: BogusSyntax.java LessEqTest.java
Date Fri, 21 Dec 2012 20:43:52 GMT
Author: elecharny
Date: Fri Dec 21 20:43:52 2012
New Revision: 1425133

URL: http://svn.apache.org/viewvc?rev=1425133&view=rev
Log:
Fixed a failing test : the syntax was injected more than once with the same name

Modified:
    directory/apacheds/trunk/xdbm-partition/src/test/java/org/apache/directory/server/xdbm/search/impl/BogusSyntax.java
    directory/apacheds/trunk/xdbm-partition/src/test/java/org/apache/directory/server/xdbm/search/impl/LessEqTest.java

Modified: directory/apacheds/trunk/xdbm-partition/src/test/java/org/apache/directory/server/xdbm/search/impl/BogusSyntax.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/xdbm-partition/src/test/java/org/apache/directory/server/xdbm/search/impl/BogusSyntax.java?rev=1425133&r1=1425132&r2=1425133&view=diff
==============================================================================
--- directory/apacheds/trunk/xdbm-partition/src/test/java/org/apache/directory/server/xdbm/search/impl/BogusSyntax.java
(original)
+++ directory/apacheds/trunk/xdbm-partition/src/test/java/org/apache/directory/server/xdbm/search/impl/BogusSyntax.java
Fri Dec 21 20:43:52 2012
@@ -37,7 +37,7 @@ public class BogusSyntax extends LdapSyn
         super( "1.3.6.1.4.1.18060.0.4.1.1.100000." + oidVal );
         setHumanReadable( false );
         setObsolete( false );
-        addName( "bogus" );
+        addName( "bogus" + oidVal );
         setDescription( "bogus" );
         setSchemaName( "other" );
     }

Modified: directory/apacheds/trunk/xdbm-partition/src/test/java/org/apache/directory/server/xdbm/search/impl/LessEqTest.java
URL: http://svn.apache.org/viewvc/directory/apacheds/trunk/xdbm-partition/src/test/java/org/apache/directory/server/xdbm/search/impl/LessEqTest.java?rev=1425133&r1=1425132&r2=1425133&view=diff
==============================================================================
--- directory/apacheds/trunk/xdbm-partition/src/test/java/org/apache/directory/server/xdbm/search/impl/LessEqTest.java
(original)
+++ directory/apacheds/trunk/xdbm-partition/src/test/java/org/apache/directory/server/xdbm/search/impl/LessEqTest.java
Fri Dec 21 20:43:52 2012
@@ -730,7 +730,7 @@ public class LessEqTest
     @Test(expected = IllegalStateException.class)
     public void testEvaluatorAttributeNoMatchingRule() throws Exception
     {
-        LdapSyntax syntax = new BogusSyntax( 1 );
+        LdapSyntax syntax = new BogusSyntax( 10 );
         MutableAttributeType at = new MutableAttributeType( SchemaConstants.ATTRIBUTE_TYPES_AT_OID
+ ".2000" );
         at.addName( "bogus" );
         at.setSchemaName( "other" );



Mime
View raw message