1 package org.xmlBlaster.test.snmp;
2
3 import java.util.logging.Logger;
4 import java.util.logging.Level;
5 import org.xmlBlaster.util.Global;
6 import org.xmlBlaster.util.Timestamp;
7 import org.xmlBlaster.util.XmlBlasterException;
8 import org.xmlBlaster.client.qos.PublishQos;
9 import org.xmlBlaster.util.qos.address.Destination;
10
11 import junit.framework.*;
12
13 /**
14 * Test SNMP (simple network management protocol) to insert data.
15 * <p />
16 * All methods starting with 'test' and without arguments are invoked automatically
17 * <p />
18 * Invoke: java -Djava.compiler= junit.textui.TestRunner -noloading org.xmlBlaster.test.snmp.InsertTest
19 *
20 * @see org.xmlBlaster.engine.admin.extern.snmp.NodeEntryImpl
21 */
22 public class InsertTest extends TestCase {
23 protected Global glob;
24 private static Logger log = Logger.getLogger(InsertTest.class.getName());
25
26 public InsertTest(String name) {
27 super(name);
28 }
29
30 protected void setUp() {
31 this.glob = Global.instance();
32
33 }
34
35 public void testInsert() {
36 System.out.println("***InsertTest: testInsert ...");
37
38 int a = 10;
39 int b = 10;
40 assertEquals("Numbers are different", a, b);
41
42 System.out.println("***InsertTest: testInsert [SUCCESS]");
43 }
44
45 /**
46 * <pre>
47 * java org.xmlBlaster.test.snmp.InsertTest
48 * </pre>
49 */
50 public static void main(String args[])
51 {
52 InsertTest testSub = new InsertTest("InsertTest");
53 testSub.setUp();
54 testSub.testInsert();
55 //testSub.tearDown();
56 }
57 }
syntax highlighted by Code2HTML, v. 0.9.1