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 2004/10/28 01:46:00 UTC
svn commit: rev 55750 - incubator/directory/eve/trunk/backend/core/src/test/org/apache/eve/jndi
Author: akarasulu
Date: Wed Oct 27 16:46:00 2004
New Revision: 55750
Added:
incubator/directory/eve/trunk/backend/core/src/test/org/apache/eve/jndi/ComparatorNPEBugTest.java
Modified:
incubator/directory/eve/trunk/backend/core/src/test/org/apache/eve/jndi/AbstractJndiTest.java
Log:
failing test case
Modified: incubator/directory/eve/trunk/backend/core/src/test/org/apache/eve/jndi/AbstractJndiTest.java
==============================================================================
--- incubator/directory/eve/trunk/backend/core/src/test/org/apache/eve/jndi/AbstractJndiTest.java (original)
+++ incubator/directory/eve/trunk/backend/core/src/test/org/apache/eve/jndi/AbstractJndiTest.java Wed Oct 27 16:46:00 2004
@@ -38,6 +38,9 @@
/** the context root for the system partition */
protected LdapContext sysRoot;
+ /** flag whether to delete database files for each test or not */
+ protected boolean doDelete = true;
+
/**
* Get's the initial context factory for the provider's ou=system context
@@ -81,7 +84,11 @@
}
sysRoot = null;
- File file = new File( "target/eve" );
- FileUtils.deleteDirectory( file );
+
+ if ( doDelete == true )
+ {
+ File file = new File( "target/eve" );
+ FileUtils.deleteDirectory( file );
+ }
}
}
Added: incubator/directory/eve/trunk/backend/core/src/test/org/apache/eve/jndi/ComparatorNPEBugTest.java
==============================================================================
--- (empty file)
+++ incubator/directory/eve/trunk/backend/core/src/test/org/apache/eve/jndi/ComparatorNPEBugTest.java Wed Oct 27 16:46:00 2004
@@ -0,0 +1,45 @@
+/*
+ * 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.eve.jndi;
+
+
+/**
+ * Confirms the removal of the comparator serialization bug filed here in JIRA:
+ * <a href="http://nagoya.apache.org/jira/browse/DIREVE-54">DIREVE-54</a>.
+ *
+ * @author <a href="mailto:directory-dev@incubator.apache.org">Apache Directory Project</a>
+ * @version $Rev$
+ */
+public class ComparatorNPEBugTest extends AbstractJndiTest
+{
+ public ComparatorNPEBugTest()
+ {
+ super.doDelete = false;
+ }
+
+
+ /**
+ * Test runs first to initialize the system.
+ */
+ public void testAAA() {}
+
+
+ /**
+ * This test fails currently.
+ */
+ public void testZZZ() {}
+}