Uploaded image for project: 'ZooKeeper'
  1. ZooKeeper
  2. ZOOKEEPER-4446

branch-3.6 txnLogCountTest use wrong version of Junit Assert import

    XMLWordPrintableJSON

Details

    Description

      The issue is due to https://github.com/apache/zookeeper/blob/branch-3.6/zookeeper-server/src/test/java/org/apache/zookeeper/server/TxnLogCountTest.java

      import static org.junit.jupiter.api.Assertions.assertEquals; 

      Cause the compilation error, since Junit 4 still in used.

      [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:testCompile (default-testCompile) on project zookeeper: Compilation failure: Compilation failure: 
      
        
      
        
          
          [ERROR] /home/runner/work/zookeeper/zookeeper/zookeeper-server/src/test/java/org/apache/zookeeper/server/TxnLogCountTest.java:[21,36] package org.junit.jupiter.api does not exist
      
        
      
        
          
          [ERROR] /home/runner/work/zookeeper/zookeeper/zookeeper-server/src/test/java/org/apache/zookeeper/server/TxnLogCountTest.java:[21,1] static import only from classes and interfaces
      
        
      
        
          
          [ERROR] /home/runner/work/zookeeper/zookeeper/zookeeper-server/src/test/java/org/apache/zookeeper/server/TxnLogCountTest.java:[49,9] cannot find symbol
      
        
      
        
          
          [ERROR]   symbol:   method assertEquals(int,int)
      
        
      
        
          
          [ERROR]   location: class org.apache.zookeeper.server.TxnLogCountTest
      
        
      
        
          
          [ERROR] /home/runner/work/zookeeper/zookeeper/zookeeper-server/src/test/java/org/apache/zookeeper/server/TxnLogCountTest.java:[52,9] cannot find symbol
      
        
      
        
          
          [ERROR]   symbol:   method assertEquals(int,int)
      
        
      
        
          
          [ERROR]   location: class org.apache.zookeeper.server.TxnLogCountTest
      
        
      
        
          
          [ERROR] -> [Help 1] 

       

       

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              phang98 Phang Khar Yeow
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h 10m
                  1h 10m