You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@zookeeper.apache.org by "Phang Khar Yeow (Jira)" <ji...@apache.org> on 2022/01/19 13:21:00 UTC

[jira] [Created] (ZOOKEEPER-4446) branch-3.6 txnLogCountTest use wrong version of Junit Assert import

Phang Khar Yeow created ZOOKEEPER-4446:
------------------------------------------

             Summary: branch-3.6 txnLogCountTest use wrong version of Junit Assert import
                 Key: ZOOKEEPER-4446
                 URL: https://issues.apache.org/jira/browse/ZOOKEEPER-4446
             Project: ZooKeeper
          Issue Type: Bug
          Components: server
    Affects Versions: 3.6.4
            Reporter: Phang Khar Yeow
             Fix For: 3.6.4


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]
{code:java}
import static org.junit.jupiter.api.Assertions.assertEquals; {code}
Cause the compilation error, since Junit 4 still in used.
{code:java}
[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] {code}
 

 



--
This message was sent by Atlassian Jira
(v8.20.1#820001)