com.ibm.wala.core.tests.util
Class WalaTestCase

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by com.ibm.wala.core.tests.util.WalaTestCase
All Implemented Interfaces:
junit.framework.Test
Direct Known Subclasses:
CallGraphTest, CFGTest, CHATest, ClassConstantTest, CloneTest, CompareCDGTest, CornerCasesTest, DebuggingBitsetCallGraphTest, DeterministicIRTest, EclipseCallGraphTest, FormulaTest, GetTargetsTest, GraphDataflowTest, IRTests, LibraryVersionTest, LocalNamesTest, MultiDimArrayTest, PiNodeCallGraphTest, PrimitivesTest, ReflectionTest, SourceMapTest, TestCallGraphShape, TestCAstPattern, TestWebUtil

public abstract class WalaTestCase
extends junit.framework.TestCase

Simple extension to JUnit test case.


Constructor Summary
WalaTestCase()
           
WalaTestCase(java.lang.String arg0)
           
 
Method Summary
protected static void assertBound(java.lang.String tag, double quantity, double bound)
           
protected static void assertBound(java.lang.String tag, int quantity, int bound)
           
protected static void justThisTest(java.lang.Class<?> testClass)
          Utility function: each DetoxTestCase subclass can have a main() method that calls this, to create a test suite consisting of just this test.
protected  void setUp()
           
protected  void tearDown()
           
static boolean useShortProfile()
           
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, 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, failNotEquals, failNotSame, failSame, format
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WalaTestCase

public WalaTestCase()

WalaTestCase

public WalaTestCase(java.lang.String arg0)
Parameters:
arg0 -
Method Detail

useShortProfile

public static boolean useShortProfile()

setUp

protected void setUp()
              throws java.lang.Exception
Overrides:
setUp in class junit.framework.TestCase
Throws:
java.lang.Exception

tearDown

protected void tearDown()
                 throws java.lang.Exception
Overrides:
tearDown in class junit.framework.TestCase
Throws:
java.lang.Exception

justThisTest

protected static void justThisTest(java.lang.Class<?> testClass)
Utility function: each DetoxTestCase subclass can have a main() method that calls this, to create a test suite consisting of just this test. Useful when investigating a single failing test.


assertBound

protected static void assertBound(java.lang.String tag,
                                  double quantity,
                                  double bound)

assertBound

protected static void assertBound(java.lang.String tag,
                                  int quantity,
                                  int bound)