jnetpcap.filter.bpf.vm
Class TestVM

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by jnetpcap.filter.bpf.vm.TestVM
All Implemented Interfaces:
junit.framework.Test

public class TestVM
extends junit.framework.TestCase

JUnit test cases to test the java BPF VM against some BPF programs and several different capture files.

Author:
Mark Bednarczyk, Sly Technologies, Inc.

Constructor Summary
TestVM()
           
 
Method Summary
 java.nio.ByteBuffer nextPacket()
           
 void openFile(java.lang.String file, java.nio.ByteOrder order)
           
 void setUp()
           
 void test_l2tp()
           
 void test_nfsv2()
           
 void test_radius_vpdn_basic()
           
 
Methods inherited from class junit.framework.TestCase
countTestCases, getName, run, run, runBare, setName, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TestVM

public TestVM()
Method Detail

setUp

public void setUp()
           throws java.io.IOException,
                  IllegalInstruction
Overrides:
setUp in class junit.framework.TestCase
Throws:
java.io.IOException
IllegalInstruction

nextPacket

public java.nio.ByteBuffer nextPacket()
                               throws java.io.IOException
Throws:
java.io.IOException

openFile

public void openFile(java.lang.String file,
                     java.nio.ByteOrder order)
              throws java.io.IOException
Throws:
java.io.IOException

test_l2tp

public void test_l2tp()
               throws java.io.IOException,
                      IllegalInstruction
Throws:
java.io.IOException
IllegalInstruction

test_nfsv2

public void test_nfsv2()
                throws java.io.IOException,
                       IllegalInstruction
Throws:
java.io.IOException
IllegalInstruction

test_radius_vpdn_basic

public void test_radius_vpdn_basic()
                            throws java.io.IOException,
                                   IllegalInstruction
Throws:
java.io.IOException
IllegalInstruction