Package org.jboss.jmx.adaptor.snmp.agent

Examples of org.jboss.jmx.adaptor.snmp.agent.ComparableSnmpObjectId


    assertEquals(".1.2.4",res.toString());
  }

  public void testGetNextArc2()
  {
    ComparableSnmpObjectId coid = new ComparableSnmpObjectId(".1.2.3.4.5");
    ComparableSnmpObjectId res = coid.getNextArc();
    assertEquals(".1.2.3.5",res.toString());
  }
View Full Code Here


    assertEquals(".1.2.3.5",res.toString());
  }

  public void testGetNextArc3()
  {
    ComparableSnmpObjectId coid = new ComparableSnmpObjectId(".1.2.3.4.0");
    ComparableSnmpObjectId res = coid.getNextArc();
    assertEquals(".1.2.4",res.toString());
  }
View Full Code Here

 
  public void testGetSubtree()
  {
    SortedSet s = new TreeSet();
    ComparableSnmpObjectId coid = new ComparableSnmpObjectId("1.2.3.4.0");
    s.add(coid);
    coid = new ComparableSnmpObjectId("1.2.3.5.0");
    s.add(coid);
    coid = new ComparableSnmpObjectId("1.2.3.6.0");
    s.add(coid);
   
    ComparableSnmpObjectId c2 = new ComparableSnmpObjectId("1.2.3.4.1");
    SortedSet subset = s.tailSet(c2);
    assertEquals(2,subset.size());
   
    subset = s.headSet(c2);
    assertEquals(1,subset.size());
View Full Code Here

TOP

Related Classes of org.jboss.jmx.adaptor.snmp.agent.ComparableSnmpObjectId

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.