From f78ad2daa5def7c88d94f63a916251e5b527f01e Mon Sep 17 00:00:00 2001
From: Matthew Swift <matthew.swift@forgerock.com>
Date: Fri, 06 Dec 2013 08:02:26 +0000
Subject: [PATCH] Removed a couple of broken unit test cases which were dependent upon the task backend being empty, which is not necessarily the case if previous unit tests have performed any tasks.
---
opendj-sdk/opends/tests/unit-tests-testng/src/server/org/opends/server/extensions/NumSubordinatesVirtualAttributeProviderTestCase.java | 6 ++++--
1 files changed, 4 insertions(+), 2 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 27935af..88ff9df 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
@@ -33,12 +33,15 @@
import org.opends.server.protocols.internal.InternalClientConnection;
import org.opends.server.protocols.internal.InternalSearchOperation;
import org.opends.server.protocols.ldap.LDAPControl;
+
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;
import org.testng.annotations.BeforeClass;
import org.testng.annotations.DataProvider;
import org.testng.annotations.Test;
+
import static org.testng.Assert.assertNotNull;
import static org.testng.Assert.assertTrue;
import static org.testng.Assert.assertFalse;
@@ -46,6 +49,7 @@
import java.util.*;
+@SuppressWarnings("javadoc")
public class NumSubordinatesVirtualAttributeProviderTestCase extends DirectoryServerTestCase {
// The attribute type for the numSubordinates attribute.
private AttributeType numSubordinatesType;
@@ -195,8 +199,6 @@
// DirectoryServer.getBackends().size() },
new Object[] { DN.decode("cn=Work Queue,cn=config"), 0 },
new Object[] { DN.decode("cn=tasks"), 2 },
- new Object[] { DN.decode("cn=Recurring Tasks,cn=tasks"), 0 },
- new Object[] { DN.decode("cn=Scheduled Tasks,cn=tasks"), 0 },
new Object[] { DN.decode("cn=backups"), 0 }
};
}
--
Gitblit v1.10.0