JUnit assertTrue: ObjectArray
import java.util.ArrayList; import java.util.List; importstatic org.junit.Assert.assertEquals; importstatic org.junit.Assert.assertFalse; importstatic org.junit.Assert.assertTrue; import junit.framework.JUnit4TestAdapter; import org.junit.Before; import org.junit.BeforeClass; import org.junit.Ignore; import org.junit.Test; publicclass MainClass{ publicstaticvoid main (String... args) { junit.textui.TestRunner.run (suite()); } publicstatic junit.framework.Test suite() { returnnew JUnit4TestAdapter(MainClass.class); } @Test publicvoid arraysNotEqual() { assertEquals("message", new Object[] {true, true}, new Object[] {true, false}); } }
JUnit-assertTrue-ObjectArray.zip( 96 k)Related examples in the same category