new JUnit4TestAdapter(Class> test)
import static org.junit.Assert.assertEquals;
import junit.framework.JUnit4TestAdapter;
import org.junit.Test;
public class Main{
public static void main (String... args) {
junit.textui.TestRunner.run (suite());
}
public static junit.framework.Test suite() {
return new JUnit4TestAdapter(Main.class);
}
@Test public void arraysNotEqual() {
assertEquals("message", new Object[] {true, true}, new Object[] {true, false});
}
}
Related examples in the same category