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
I am working on JUnit in java 8 environment, using jUnit4.12
for me: compiler was not able to find the method assertEquals, even when I used
import org.junit.Assert;
So I changed assertEquals("addb", string);
toAssert.assertEquals("addb", string);
So if you are facing problem regarding assertEqual
not recognized, then change it to Assert.assertEquals(,);
it should solve your problem