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

java.lang.Object
  extended by com.ibm.wala.core.tests.util.WalaTestCase
Direct Known Subclasses:
AnnotationTest, CallGraphTest, CFGSanitizerTest, CFGTest, ClassConstantTest, CloneTest, CornerCasesTest, DataflowTest, DebuggingBitsetCallGraphTest, DeterministicIRTest, GetTargetsTest, GraphDataflowTest, InnerClassesTest, InterfaceTest, LibraryVersionTest, LocalNamesTest, MultiDimArrayTest, MultiNewArrayTest, OrdinalSetTest, PiNodeCallGraphTest, PrimitivesTest, ReflectionTest, SemiSparseMutableIntSetTest, SourceMapTest, SyntheticTest, TestCallGraphShape, TestCAstPattern, TestCAstTranslator, TestWebUtil, TwoLevelVectorTest, TypeBasedArrayAliasTest, TypeInferenceTest

public abstract class WalaTestCase
extends java.lang.Object

Simple extension to JUnit test case.


Constructor Summary
WalaTestCase()
           
 
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.
 void setUp()
           
 void tearDown()
           
static boolean useShortProfile()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WalaTestCase

public WalaTestCase()
Method Detail

useShortProfile

public static boolean useShortProfile()

setUp

public void setUp()
           throws java.lang.Exception
Throws:
java.lang.Exception

tearDown

public void tearDown()
              throws java.lang.Exception
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)