[prev in list] [next in list] [prev in thread] [next in thread] 

List:       opennms-cvs
Subject:    [opennms-cvs] CVS: opennms/src/services/org/opennms/netmgt/collectd/mock TestVarBindList.java,1.2,1.
From:       Matt Brozowski <brozow () users ! sourceforge ! net>
Date:       2005-05-31 18:46:12
Message-ID: E1DdBki-0008Dm-9N () sc8-pr-cvs1 ! sourceforge ! net
[Download RAW message or body]

Update of /cvsroot/opennms/opennms/src/services/org/opennms/netmgt/collectd/mock
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31483/src/services/org/opennms/netmgt/collectd/mock


Modified Files:
	TestVarBindList.java AgentEndOfMibException.java 
	AgentTooBigException.java AgentNoSuchObjectException.java 
	TestPdu.java AgentNoSuchInstanceException.java 
Log Message:
Removed unused code and improved test coverage

Index: TestVarBindList.java
===================================================================
RCS file: /cvsroot/opennms/opennms/src/services/org/opennms/netmgt/collectd/mock/TestVarBindList.java,v
 retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- TestVarBindList.java	30 May 2005 20:36:35 -0000	1.2
+++ TestVarBindList.java	31 May 2005 18:45:52 -0000	1.3
@@ -36,10 +36,6 @@
 import org.opennms.netmgt.collectd.SnmpObjId;
 
 class TestVarBindList extends ArrayList {
-    public TestVarBindList(int sz) {
-        super(sz);
-    }
-
     public TestVarBindList() {
         super();
     }
@@ -52,10 +48,6 @@
         add(new TestVarBind(oid));
     }
     
-    public void addVarBind(SnmpObjId oid, Object val) {
-        add(new TestVarBind(oid, val));
-    }
-
     public TestVarBind getVarBindAt(int i) {
         return (TestVarBind)get(i);
     }

Index: AgentEndOfMibException.java
===================================================================
RCS file: /cvsroot/opennms/opennms/src/services/org/opennms/netmgt/collectd/mock/AgentEndOfMibException.java,v
 retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- AgentEndOfMibException.java	30 May 2005 20:36:35 -0000	1.1
+++ AgentEndOfMibException.java	31 May 2005 18:45:52 -0000	1.2
@@ -37,12 +37,6 @@
 
     public AgentEndOfMibException() {
         super();
-        // TODO Auto-generated constructor stub
-    }
-
-    public AgentEndOfMibException(String s) {
-        super(s);
-        // TODO Auto-generated constructor stub
     }
 
 }

Index: AgentTooBigException.java
===================================================================
RCS file: /cvsroot/opennms/opennms/src/services/org/opennms/netmgt/collectd/mock/AgentTooBigException.java,v
 retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- AgentTooBigException.java	31 May 2005 15:35:29 -0000	1.1
+++ AgentTooBigException.java	31 May 2005 18:45:52 -0000	1.2
@@ -37,16 +37,4 @@
         super();
     }
 
-    public AgentTooBigException(String message) {
-        super(message);
-    }
-
-    public AgentTooBigException(String message, Throwable cause) {
-        super(message, cause);
-    }
-
-    public AgentTooBigException(Throwable cause) {
-        super(cause);
-    }
-
 }

Index: AgentNoSuchObjectException.java
===================================================================
RCS file: /cvsroot/opennms/opennms/src/services/org/opennms/netmgt/collectd/mock/AgentNoSuchObjectException.java,v
 retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- AgentNoSuchObjectException.java	30 May 2005 20:36:35 -0000	1.1
+++ AgentNoSuchObjectException.java	31 May 2005 18:45:52 -0000	1.2
@@ -40,9 +40,4 @@
         // TODO Auto-generated constructor stub
     }
 
-    public AgentNoSuchObjectException(String s) {
-        super(s);
-        // TODO Auto-generated constructor stub
-    }
-
 }

Index: TestPdu.java
===================================================================
RCS file: /cvsroot/opennms/opennms/src/services/org/opennms/netmgt/collectd/mock/TestPdu.java,v
 retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- TestPdu.java	30 May 2005 20:36:35 -0000	1.3
+++ TestPdu.java	31 May 2005 18:45:52 -0000	1.4
@@ -67,18 +67,10 @@
         m_varBindList = new TestVarBindList(varBinds);
     }
 
-    public void addVarBind(SnmpObjId objId, Object snmpData) {
-        m_varBindList.addVarBind(objId, snmpData);
-    }
-
     public void addVarBind(SnmpObjId objId) {
         m_varBindList.addVarBind(objId);
     }
 
-    public void addVarBind(String oid, String inst) {
-        addVarBind(SnmpObjId.get(oid, inst));
-    }
-
     public void addVarBind(String oid, int inst) {
         addVarBind(SnmpObjId.get(oid, ""+inst));
     }

Index: AgentNoSuchInstanceException.java
===================================================================
RCS file: /cvsroot/opennms/opennms/src/services/org/opennms/netmgt/collectd/mock/AgentNoSuchInstanceException.java,v
 retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- AgentNoSuchInstanceException.java	30 May 2005 20:36:35 -0000	1.1
+++ AgentNoSuchInstanceException.java	31 May 2005 18:45:52 -0000	1.2
@@ -37,12 +37,5 @@
 
     public AgentNoSuchInstanceException() {
         super();
-        // TODO Auto-generated constructor stub
     }
-
-    public AgentNoSuchInstanceException(String s) {
-        super(s);
-        // TODO Auto-generated constructor stub
-    }
-
 }



-------------------------------------------------------
This SF.Net email is sponsored by Yahoo.
Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
Search APIs Find out how you can build Yahoo! directly into your own
Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005
_______________________________________________
Please read the OpenNMS Mailing List FAQ:
http://wiki.opennms.org/tiki-index.php?page=MailingListFaq

opennms-cvs mailing list

To *unsubscribe* or change your subscription options, see the bottom of this page:
https://lists.sourceforge.net/lists/listinfo/opennms-cvs


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic