opendj-sdk/opends/tests/unit-tests-testng/src/server/org/opends/server/snmp/SNMPConnectionManager.java
@@ -85,12 +85,11 @@ } /** * Set Down the Directory Server * @param message * Set Down the Directory Server. * @throws java.lang.Exception */ protected void setDown(String message) throws Exception { TestCaseUtils.shutdownServer(message); protected void setDown() throws Exception { TestCaseUtils.restartServer(); } /** opendj-sdk/opends/tests/unit-tests-testng/src/server/org/opends/server/snmp/SNMPSyncManagerV2AccessTest.java
@@ -57,8 +57,7 @@ import static org.testng.Assert.*; /** * A simple test for : - JMX connection establishment withou using SSL - * JMX get and set - configuration change * SNMP tests. */ @Test(enabled=false, groups = {"precommit", "snmp"}, sequential = true) public class SNMPSyncManagerV2AccessTest extends SNMPConnectionManager { opendj-sdk/opends/tests/unit-tests-testng/src/server/org/opends/server/snmp/SNMPTrapManagerTest.java
@@ -45,16 +45,9 @@ import org.testng.annotations.Test; /** * The class is a simple example showing how to use the SNMP Manager API. * * <p>When calling the program, you must specify: * <br> - host: hostname of the SNMP agent you want to query. * <br> - port: port number to use. * * <p>As a reminder, if you wish to query the SNMP agent example provided * as part of Java DMK, use port 8085. * SNMP trap test. */ @Test(enabled=false, groups = {"precommit", "snmp"}, sequential = true) @Test(enabled=true, groups = {"precommit", "snmp"}, sequential = true) public class SNMPTrapManagerTest extends SNMPConnectionManager { @BeforeClass @@ -63,7 +56,7 @@ super.setUp(); } @Test(enabled = false) @Test(enabled = true) public void checkTraps() { try { @@ -97,12 +90,11 @@ trapThread.start(); // One Trap this.setDown( "On demand from org.opends.server.snmp.SNMPTrapManagerTest"); this.setDown(); int trapNumbers = trapListener.getNumberV1Traps(); // Should received 3 traps // Should received 1 traps assertEquals(trapNumbers, 1); // Nicely stop the SnmpEventReportDispatcher.