serp.bytecode
Class TestConstantInstruction

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

public class TestConstantInstruction
extends junit.framework.TestCase

Tests the ConstantInstruction type.

Author:
Abe White

Constructor Summary
TestConstantInstruction(String test)
           
 
Method Summary
static void main(String[] args)
           
static junit.framework.Test suite()
           
 void testGetType()
          Test that the type instruction returns its type correctly.
 void testGetValue()
          Test that the value is stored correctly.
 void testOpcodeMorph()
          Test the the opcode is morphed correctly when the value is set.
 
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

TestConstantInstruction

public TestConstantInstruction(String test)
Method Detail

testGetType

public void testGetType()
Test that the type instruction returns its type correctly.


testGetValue

public void testGetValue()
Test that the value is stored correctly.


testOpcodeMorph

public void testOpcodeMorph()
Test the the opcode is morphed correctly when the value is set.


suite

public static junit.framework.Test suite()

main

public static void main(String[] args)


Copyright © 2002-2013. All Rights Reserved.