@@ -0,0 +1,1026 @@
+package org.opennms.netmgt.snmp.mock;%0A%0Aimport java.io.File;%0A%0Aimport junit.framework.TestCase;%0A%0Aimport org.apache.log4j.BasicConfigurator;%0A%0Apublic class MockSnmpAgentTest extends TestCase %7B%0A%09%0A%09private MockSnmpAgent agt;%0A%0A%09protected void setUp() throws Exception %7B%0A%09%09super.setUp();%0A%0A%09%09BasicConfigurator.configure();%0A%09%09try %7B%0A%09%09%09agt = new MockSnmpAgent( new File(%22mockAgent.boot%22),%0A%09%09%09%09%09new File(%22mockAgent.conf%22),%0A%09%09%09%09%09new File(%22target/test-classes/org/opennms/netmgt/snmp/mock/loadSnmpDataTest.properties%22),%0A%09%09%09%09%09%220.0.0.0/1691%22);%09/* Homage to Empire */%0A%09%09%09new Thread(agt).start();%0A%09%09%7D catch (RuntimeException e) %7B%0A%09%09%09e.printStackTrace();%0A%09%09%7D%0A%09%09try %7B%0A%09%09%09Thread.sleep(2000);%09%09/* This will need tinkering with to get it optimal  -jeffg */%0A%09%09%7D catch (InterruptedException e) %7B%0A%09%09%09e.printStackTrace();%0A%09%09%7D%0A%09%7D%0A%0A%09protected void tearDown() throws Exception %7B%0A%09%09super.tearDown();%0A%09%09agt.shutDown();%0A%09%7D%0A%0A%09/* %0A%09 * A totally useless test case, just to turn the bar green%0A%09 */%0A%09public void testFooIsFoo() %7B%0A%09%09assertEquals(%22foo%22, %22foo%22);%0A%09%7D%0A%7D%0A

Add MockSnmpAgentTest (forgot it with my initial checkin)