serp.bytecode
Class AbstractStateTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by serp.bytecode.AbstractStateTest
All Implemented Interfaces:
junit.framework.Test
Direct Known Subclasses:
TestArray, TestPrimitive

public abstract class AbstractStateTest
extends junit.framework.TestCase

Base class for testing the handling of the PrimitiveState and ArrayState. Subclasses should set the _bc member in their TestCase.setUp() method.

Author:
Abe White

Field Summary
protected  serp.bytecode.BCClass _bc
           
protected  serp.bytecode.Project _project
           
 
Constructor Summary
AbstractStateTest(String test)
           
 
Method Summary
 void testAttributes()
          Test operations on attributes.
 void testBasics()
          Test the basics -- magic number, etc.
abstract  void testComponent()
          Test operations on the component type.
 void testFields()
          Test operations on fields.
 void testInterfaces()
          Test operations on interfaces.
 void testMethods()
          Test operations on methods.
abstract  void testSuperclass()
          Test operations on the superclass.
abstract  void testType()
          Test the name and type operations.
 void testWrite()
          Tests that these types cannot be written.
 
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
 

Field Detail

_project

protected serp.bytecode.Project _project

_bc

protected serp.bytecode.BCClass _bc
Constructor Detail

AbstractStateTest

public AbstractStateTest(String test)
Method Detail

testType

public abstract void testType()
Test the name and type operations.


testSuperclass

public abstract void testSuperclass()
Test operations on the superclass.


testComponent

public abstract void testComponent()
Test operations on the component type.


testBasics

public void testBasics()
Test the basics -- magic number, etc.


testInterfaces

public void testInterfaces()
Test operations on interfaces.


testFields

public void testFields()
Test operations on fields.


testMethods

public void testMethods()
Test operations on methods.


testAttributes

public void testAttributes()
Test operations on attributes.


testWrite

public void testWrite()
Tests that these types cannot be written.



Copyright © 2002-2013. All Rights Reserved.