Uploaded image for project: 'MyFaces Core'
  1. MyFaces Core
  2. MYFACES-4408

Migrate all tests to JUnit5

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.3-next-M6
    • 4.0.0-RC5
    • JSR-372
    • None
    • junit 4.13.2, myfaces-test 2.3-next-M6

    Description

      JUnit38ClassRunner is used for tests when test classes extends AbstractJsfConfigurableMockTestCase. It is because AbstractJsfConfigurableMockTestCase extends TestCase and there is check in JUnit3Builder

      public class JUnit3Builder extends RunnerBuilder {
          @Override
          public Runner runnerForClass(Class<?> testClass) throws Throwable {
              if (isPre4Test(testClass)) {
                  return new JUnit38ClassRunner(testClass);
              }
              return null;
          }    boolean isPre4Test(Class<?> testClass) {
              return junit.framework.TestCase.class.isAssignableFrom(testClass);
          }
      }
      

      Is it correct, that jsf tests have to run with Junit 3?

      Attachments

        Activity

          People

            tandraschko Thomas Andraschko
            Pacvon Stanislav Pacvon
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: