From 2671b8c093dde6934c2b261830e3d1b6133e8dc4 Mon Sep 17 00:00:00 2001
From: boli <boli@localhost>
Date: Tue, 28 Aug 2007 20:03:30 +0000
Subject: [PATCH] Fixed NumSubordinatesVirtualAttributeProviderTestCase unit test which was crashing TestNG on some machines.
---
opendj-sdk/opends/tests/unit-tests-testng/src/server/org/opends/server/extensions/NumSubordinatesVirtualAttributeProviderTestCase.java | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/opendj-sdk/opends/tests/unit-tests-testng/src/server/org/opends/server/extensions/NumSubordinatesVirtualAttributeProviderTestCase.java b/opendj-sdk/opends/tests/unit-tests-testng/src/server/org/opends/server/extensions/NumSubordinatesVirtualAttributeProviderTestCase.java
index 67b6493..a5b7362 100644
--- a/opendj-sdk/opends/tests/unit-tests-testng/src/server/org/opends/server/extensions/NumSubordinatesVirtualAttributeProviderTestCase.java
+++ b/opendj-sdk/opends/tests/unit-tests-testng/src/server/org/opends/server/extensions/NumSubordinatesVirtualAttributeProviderTestCase.java
@@ -28,10 +28,8 @@
import org.opends.server.types.*;
import org.opends.server.TestCaseUtils;
-import org.opends.server.extensions.NumSubordinatesVirtualAttributeProvider;
import org.opends.server.protocols.internal.InternalClientConnection;
import org.opends.server.protocols.internal.InternalSearchOperation;
-import static org.opends.server.util.StaticUtils.getBytes;
import static org.opends.server.util.ServerConstants.OID_REAL_ATTRS_ONLY;
import static org.opends.server.util.ServerConstants.OID_VIRTUAL_ATTRS_ONLY;
import org.opends.server.core.DirectoryServer;
@@ -577,7 +575,7 @@
*
* @throws Exception If an unexpected problem occurs.
*/
- @Test
+ @Test(dataProvider = "testEntryDNs")
public void testSearchnumSubordinatesAttrInGTEFilter(DN entryDN, int count)
throws Exception
{
@@ -609,7 +607,7 @@
*
* @throws Exception If an unexpected problem occurs.
*/
- @Test
+ @Test(dataProvider = "testEntryDNs")
public void testSearchnumSubordinatesAttrInLTEFilter(DN entryDN, int count)
throws Exception
{
--
Gitblit v1.10.0