Uploaded image for project: 'Apache Ozone'
  1. Apache Ozone
  2. HDDS-6729 Migrate tests to JUnit5
  3. HDDS-9935

Remove leftover JUnit4 imports from modules already migrated

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Trivial
    • Resolution: Done
    • 2.0.0
    • 2.0.0
    • test

    Description

      There are some leftover JUnit4 imports in modules already migrated:

      hadoop-hdds/container-service/src/test/java/org/apache/hadoop/ozone/container/keyvalue/TestKeyValueContainer.java
      62:import org.junit.Assume;
      
      hadoop-hdds/container-service/src/test/java/org/apache/hadoop/ozone/container/replication/TestContainerImporter.java
      47:import org.junit.rules.TemporaryFolder;
      
      hadoop-hdds/server-scm/src/test/java/org/apache/hadoop/hdds/scm/server/TestSCMBlockProtocolServer.java
      56:import org.junit.platform.commons.util.Preconditions;
      
      hadoop-hdds/server-scm/src/test/java/org/apache/hadoop/hdds/scm/pipeline/TestWritableECContainerProvider.java
      46:import org.junit.runners.Parameterized;
      
      hadoop-ozone/recon/src/test/java/org/apache/hadoop/ozone/recon/ReconTestInjector.java
      48:import org.junit.rules.TemporaryFolder;
      
      hadoop-ozone/ozone-manager/src/test/java/org/apache/hadoop/ozone/security/acl/TestParentAcl.java
      55:import org.junit.experimental.categories.Category;
      
      hadoop-ozone/ozone-manager/src/test/java/org/apache/hadoop/ozone/om/upgrade/TestOMVersionManager.java
      53:import org.junit.experimental.categories.Category;
      
      hadoop-ozone/ozone-manager/src/test/java/org/apache/hadoop/ozone/om/upgrade/TestOmVersionManagerRequestFactory.java
      37:import org.junit.experimental.categories.Category;
      

      Additionally, import ban does not seem to work in these modules.

      Attachments

        Issue Links

          Activity

            People

              adoroszlai Attila Doroszlai
              adoroszlai Attila Doroszlai
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: