I\'m trying to write my first unit tests for a calculator, but NetBeans says it can\'t find the symbol assertEquals
and annotation @Test
.
Should i
In JUnit 5 the package name has changed and the Assertions are at org.junit.jupiter.api.Assertions
and Assumptions at org.junit.jupiter.api.Assumptions
So you have to add the following static import
:
import static org.junit.jupiter.api.Assertions.*;
See also http://junit.org/junit5/docs/current/user-guide/#writing-tests-assertions