Class JUnit4TestAdapter

    • Field Detail

      • fNewTestClass

        private final java.lang.Class<?> fNewTestClass
      • fRunner

        private final Runner fRunner
    • Constructor Detail

      • JUnit4TestAdapter

        public JUnit4TestAdapter​(java.lang.Class<?> newTestClass)
      • JUnit4TestAdapter

        public JUnit4TestAdapter​(java.lang.Class<?> newTestClass,
                                 JUnit4TestAdapterCache cache)
    • Method Detail

      • countTestCases

        public int countTestCases()
        Description copied from interface: Test
        Counts the number of test cases that will be run by this test.
        Specified by:
        countTestCases in interface Test
      • run

        public void run​(TestResult result)
        Description copied from interface: Test
        Runs a test and collects its result in a TestResult instance.
        Specified by:
        run in interface Test
      • getTests

        public java.util.List<Test> getTests()
      • getTestClass

        public java.lang.Class<?> getTestClass()
      • isIgnored

        private boolean isIgnored​(Description description)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • sort

        public void sort​(Sorter sorter)
        Description copied from interface: Sortable
        Sorts the tests using sorter
        Specified by:
        sort in interface Sortable
        Parameters:
        sorter - the Sorter to use for sorting the tests