Class BMTestCase

java.lang.Object
junit.framework.Assert
junit.framework.TestCase
org.jboss.byteman.contrib.bmunit.BMTestCase
All Implemented Interfaces:
junit.framework.Test

public class BMTestCase extends junit.framework.TestCase
A subclass of the JUnit test case class which looks for a byteman rule file with the same name as the test case and loads it during setup then removes it during teardown
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private String
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
     
    BMTestCase(String name, String loadDirectory)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
     
    protected void
     

    Methods inherited from class junit.framework.TestCase

    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, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runBare, runTest, setName, toString

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Field Details

    • loadDirectory

      private String loadDirectory
  • Constructor Details

    • BMTestCase

      public BMTestCase(String name, String loadDirectory)
    • BMTestCase

      public BMTestCase(String name)
    • BMTestCase

      public BMTestCase()
  • Method Details

    • setUp

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

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