sysModel.classFile.code
Class InstructionListTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by sysModel.classFile.code.InstructionListTest
All Implemented Interfaces:
junit.framework.Test

public class InstructionListTest
extends junit.framework.TestCase

Unit tests for InstructionList class.

Author:
Mathias Ricken

Field Summary
protected  byte[] TEST_CODE
           
protected  byte[] TEST_CODE_DELETE_RESULT
           
protected  byte[] TEST_CODE_DELETE_RESULT2
           
protected  byte[] TEST_CODE_EMPTY
           
protected  byte[] TEST_CODE_INSERT_RESULT
           
protected  byte[] TEST_CODE_INSERT_RESULT2
           
protected  byte[] TEST_CODE_INSERT_RESULT3
           
protected  byte[] TEST_CODE_INSERTDELETE
           
protected  byte[] TEST_CODE_INVALID
           
protected  byte[] TEST_CODE2
           
 
Constructor Summary
InstructionListTest()
           
 
Method Summary
 void testCtorAndGetCode()
           
 void testDelete()
           
 void testExceptions()
           
 void testFindInstr()
           
 void testFindOpcode()
           
 void testIndex()
           
 void testInsert()
           
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, 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, failNotEquals, failNotSame, failSame
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

TEST_CODE

protected final byte[] TEST_CODE

TEST_CODE2

protected final byte[] TEST_CODE2

TEST_CODE_INVALID

protected final byte[] TEST_CODE_INVALID

TEST_CODE_EMPTY

protected final byte[] TEST_CODE_EMPTY

TEST_CODE_INSERTDELETE

protected final byte[] TEST_CODE_INSERTDELETE

TEST_CODE_DELETE_RESULT

protected final byte[] TEST_CODE_DELETE_RESULT

TEST_CODE_DELETE_RESULT2

protected final byte[] TEST_CODE_DELETE_RESULT2

TEST_CODE_INSERT_RESULT

protected final byte[] TEST_CODE_INSERT_RESULT

TEST_CODE_INSERT_RESULT2

protected final byte[] TEST_CODE_INSERT_RESULT2

TEST_CODE_INSERT_RESULT3

protected final byte[] TEST_CODE_INSERT_RESULT3
Constructor Detail

InstructionListTest

public InstructionListTest()
Method Detail

testCtorAndGetCode

public void testCtorAndGetCode()
                        throws java.io.IOException
Throws:
java.io.IOException

testExceptions

public void testExceptions()

testIndex

public void testIndex()

testFindOpcode

public void testFindOpcode()

testFindInstr

public void testFindInstr()

testDelete

public void testDelete()

testInsert

public void testInsert()