mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

Matthew Swift
06.02.2013 29b105f57c166bbdb78eee0d917a36c01d9d836d
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.
1 files modified
6 ■■■■■ changed files
opends/tests/unit-tests-testng/src/server/org/opends/server/extensions/NumSubordinatesVirtualAttributeProviderTestCase.java 6 ●●●●● patch | view | raw | blame | history
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 }
    };
  }