import junit.framework.TestCase;

/**
 * A JUnit test case class.
 * Every method starting with the word "test" will
 * be called when running
 * the test with JUnit.
 */
public class ChapterTester extends TestCase {
    
    /**
     * A test method.
     * (Replace "X" with a name describing the test.  You may write as
     * many "testSomething" methods in this class as you wish, and each
     * one will be called when running JUnit over this class.)
     */
    public void testFirstConstructor() {
        Chapter x;
        x= new Chapter("Me", 5, null);
        assertEquals("Me" , x.getTitle());
        assertEquals(5 , x.getNumber());
        assertEquals(null , x.getPrevious());
    }
    
    public void testSecondConstructor() {
         
    }
    
    public void testSetterMethods() {
        
    }
    
    public void testOthers() {
        Chapter c0;
        Chapter c1;
        c0= new Chapter("Me", 0, null);
        c1= new Chapter("You", 1, null);
        assertEquals(true, c0.isLower(c1)); 
        assertEquals(false, c1.isLower(c0)); 
        assertEquals(false, c1.isLower(c1));
        
        assertEquals(true , Chapter.isZero(c0));
        assertEquals(false , Chapter.isZero(c1));
        assertEquals(false , Chapter.isZero(null));
    }
    
    
    
}
