I have:
package com.darlik.test; import org.junit.Assert; public class Test { public static void main(String[] args) { assertTrue(1, 2); } } package with org.junit is set and working but in line with assertTrue i have error:
The method assertTrue(int, int) is undefined for the type Test
Why? I use Eclipse.
assertTruehas the method signatureassertTrue(boolean), i.e.assertTrue(actual == expected), see junit.sourceforge.net/javadoc/org/junit/…org.junit.Test