Class JUnitEntryPoints


  • public class JUnitEntryPoints
    extends Object
    This class represents entry points (Entrypoint)s of JUnit test methods. JUnit test methods are those invoked by the JUnit framework reflectively The entry points can be used to specify entry points of a call graph. This implementation only handles JUnit 3.
    • Constructor Detail

      • JUnitEntryPoints

        public JUnitEntryPoints()
    • Method Detail

      • isJUnitTestCase

        public static boolean isJUnitTestCase​(IClass klass)
        Check if the given class is a JUnit test class. A JUnit test class is a subclass of junit.framework.TestCase or junit.framework.TestSuite.
        Throws:
        IllegalArgumentException - if klass is null
      • isJUnitMethod

        public static boolean isJUnitMethod​(IMethod m)
        Check if the given method is a JUnit test method, assuming that it is declared in a JUnit test class. A method is a JUnit test method if the name has the prefix "test", or its name is "setUp" or "tearDown".
        Throws:
        IllegalArgumentException - if m is null