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
- duplicates
-
ZOOKEEPER-4446 branch-3.6 txnLogCountTest use wrong version of Junit Assert import
- Closed