import static org.junit.Assert.*;
import org.junit.Test;
public class BagDemonstrationTest {
@Test
public void test() {
fail("Not yet implemented");
}
}
import org.junit.runners.MethodSorters;
import org.junit.FixMethodOrder;
@FixMethodOrder(MethodSorters.NAME_ASCENDING)
org.junit.Assert.*
). One very
useful is assertTrue:
assertTrue(<string message>, <boolean condition>);
Example:
assertTrue("Should be empty after default constructor.", b.size()==0);