From f78f372a776579b6c2fb0a0bbb77b098a535aa20 Mon Sep 17 00:00:00 2001
From: Jean-Noël Rouvignac <jean-noel.rouvignac@forgerock.com>
Date: Fri, 29 Apr 2016 13:10:39 +0000
Subject: [PATCH] unit tests: removed some additional suppressions (compared to forgerock-build-tools equivalent file)
---
opendj-server-legacy/src/test/java/org/opends/server/snmp/SNMPSyncManagerV2AccessTest.java | 37 +++++++++++--------------------------
1 files changed, 11 insertions(+), 26 deletions(-)
diff --git a/opendj-server-legacy/src/test/java/org/opends/server/snmp/SNMPSyncManagerV2AccessTest.java b/opendj-server-legacy/src/test/java/org/opends/server/snmp/SNMPSyncManagerV2AccessTest.java
index 76b8ac1..44999ad 100644
--- a/opendj-server-legacy/src/test/java/org/opends/server/snmp/SNMPSyncManagerV2AccessTest.java
+++ b/opendj-server-legacy/src/test/java/org/opends/server/snmp/SNMPSyncManagerV2AccessTest.java
@@ -25,21 +25,6 @@
import com.sun.management.snmp.manager.SnmpRequest;
import com.sun.management.snmp.manager.SnmpSession;
import java.net.InetAddress;
-import java.util.ArrayList;
-import java.util.Map.Entry;
-import org.forgerock.i18n.LocalizableMessage;
-import org.forgerock.opendj.config.AbstractManagedObjectDefinition;
-import org.forgerock.opendj.config.server.AdminTestCaseUtils;
-import org.forgerock.opendj.server.config.meta.SNMPConnectionHandlerCfgDefn;
-import org.forgerock.opendj.server.config.server.SNMPConnectionHandlerCfg;
-import org.opends.server.core.ModifyOperationBasis;
-import org.opends.server.protocols.internal.InternalClientConnection;
-import org.forgerock.opendj.config.server.ConfigChangeResult;
-import org.opends.server.types.Control;
-import org.forgerock.opendj.ldap.DN;
-import org.opends.server.types.Modification;
-import org.forgerock.opendj.ldap.ModificationType;
-import org.forgerock.opendj.ldap.ResultCode;
import org.testng.annotations.AfterClass;
import org.testng.annotations.BeforeClass;
import org.testng.annotations.DataProvider;
@@ -97,7 +82,7 @@
//
agent.setParams(params);
- // Build the session. A session creates, controls and
+ // Build the session. A session creates, controls and
// manages one or more requests.
//
try {
@@ -105,7 +90,7 @@
final SnmpSession session =
new SnmpSession("SyncManager session");
- // A default peer (agent) can be associated to a SnmpSession.
+ // A default peer (agent) can be associated to a SnmpSession.
// When invoking a service provided by the SnmpSession, if the
// agent is not specified, the session will perform the service
// using the default peer as the target of the service.
@@ -138,7 +123,7 @@
return;
}
- // Now we have a response. Check if the response contains
+ // Now we have a response. Check if the response contains
// an error.
//
final int errorStatus = request.getErrorStatus();
@@ -193,7 +178,7 @@
// Specify the OidTable containing all the MIB II knowledge.
// Use the OidTable generated by mibgen when compiling MIB II.
//
- final SnmpOidTableSupport oidTable = new
+ final SnmpOidTableSupport oidTable = new
DIRECTORY_SERVER_MIBOidTable();
SnmpOid.setSnmpOidTable(oidTable);
@@ -201,15 +186,15 @@
// At any time, it is possible to add knowledge in the OidTable
// using the SnmpOidDatabaseSupport.
// For instance, we could start the Manager API like that:
- // SnmpOidDatabaseSupport oidDB =
+ // SnmpOidDatabaseSupport oidDB =
// new SnmpOidDatabaseSupport();
// SnmpOid.setSnmpOidTable(oidDB);
// Then over time, MIB knowledge can be added as follows:
// oidDB.add(oidTable);
//
- // Create a SnmpPeer object for representing the entity to
- // communicate with.
+ // Create a SnmpPeer object for representing the entity to
+ // communicate with.
//
final SnmpPeer agent =
new SnmpPeer(host, this.getSnmpPort());
@@ -218,7 +203,7 @@
// with.
// When creating the parameter object, you can specify the read
// and write community to be used when querying the agent.
- //
+ //
final SnmpParameters params =
new SnmpParameters();
params.setRdCommunity(community);
@@ -227,13 +212,13 @@
//
agent.setParams(params);
- // Build the session. A session creates, controls and
+ // Build the session. A session creates, controls and
// manages one or more requests.
//
final SnmpSession session =
new SnmpSession("SyncManager session");
- // A default peer (agent) can be associated to a SnmpSession.
+ // A default peer (agent) can be associated to a SnmpSession.
// When invoking a service provided by the SnmpSession, if the
// agent is not specified, the session will perform the service
// using the default peer as the target of the service.
@@ -266,7 +251,7 @@
return;
}
- // Now we have a response. Check if the response contains
+ // Now we have a response. Check if the response contains
// an error.
//
final int errorStatus = request.getErrorStatus();
--
Gitblit v1.10.0