I am using Junit to test some code in a Maven project in Netbeans. The dependency specified is Junit 4.12 (in the pom.xml).
However, I am getting a compiler error when I try and build:
error: package org.junit.jupiter.api does not exist
on this line:
import org.junit.jupiter.api.Test;
I suspect it is a Junit4/Junit5 thing, since when I open an older version of the project in IntelliJ, it lists Junit5 as a dependency. Should I just use Junit5?
Any help in resolving the build error would be appreciated!
