serp.bytecode
Class TestCode

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by serp.bytecode.TestCode
All Implemented Interfaces:
junit.framework.Test

public class TestCode
extends junit.framework.TestCase

Tests the Code class.

Author:
Eric Lindauer

Constructor Summary
TestCode(String test)
           
 
Method Summary
static void main(String[] args)
           
static junit.framework.Test suite()
           
 void testIndexes()
          Test that instruction indexes work correctly.
 void testRemove()
          Test that removing Instructions from a Code block removes the correct Instructions.
 
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, format
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TestCode

public TestCode(String test)
Method Detail

testRemove

public void testRemove()
Test that removing Instructions from a Code block removes the correct Instructions.


testIndexes

public void testIndexes()
Test that instruction indexes work correctly.


suite

public static junit.framework.Test suite()

main

public static void main(String[] args)


Copyright © 2002-2013. All Rights Reserved.