com.mccrory.scott.spumoni.test
Class SnmpTrapAgentTest

java.lang.Object
  |
  +--junit.framework.Assert
        |
        +--junit.framework.TestCase
              |
              +--com.mccrory.scott.spumoni.test.SnmpTrapAgentTest
All Implemented Interfaces:
junit.framework.Test

public class SnmpTrapAgentTest
extends junit.framework.TestCase

JUnit test case for the SnmpTrapAgent class.

Version:
CVS $Id: SnmpTrapAgentTest.java,v 1.2 2002/08/04 22:04:53 smccrory Exp $
Author:
Scott McCrory.

Constructor Summary
SnmpTrapAgentTest(java.lang.String name)
          SnmpTrapAgentTest constructor
 
Method Summary
static void main(java.lang.String[] args)
          Runs the JUnit test from the command line.
 void testSnmpTrapAgent()
          Makes sure we can create the SnmpTrapAgent object and send V1 and V2 traps.
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, name, run, run, runBare, runTest, setName, setUp, tearDown, toString
 
Methods inherited from class junit.framework.Assert
assert, assert, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertNotNull, assertNotNull, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SnmpTrapAgentTest

public SnmpTrapAgentTest(java.lang.String name)
SnmpTrapAgentTest constructor

Parameters:
name - java.lang.String
Method Detail

main

public static void main(java.lang.String[] args)
Runs the JUnit test from the command line.

Parameters:
args - java.lang.String[]

testSnmpTrapAgent

public void testSnmpTrapAgent()
Makes sure we can create the SnmpTrapAgent object and send V1 and V2 traps. Note that it does not guarantee that they were formatted correctly or successfully received by a trap daemon (trapd). Creation date: (1/12/2002 7:22:47 PM)



Copyright © 2002 Scott McCrory as part of the Spumoni project. All Rights Reserved.