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 WorkerTester 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 --i.e. when hitting
     * button Test in the horizontal navigation bar above.)
     */
    public void testX() {
    }
    
    public void testConstructor() {
        Worker w= new Worker("gries", 23456, null);
        // assertEquals(expected value, computed value);
        assertEquals("gries", w.getLname());
        assertEquals(3456,w.getSsn());
        assertEquals(null, w.getBoss());
        
        w= new Worker("gries", 700006, null);
        assertEquals(6,w.getSsn());
        
    }
    
    /** NOTE: form of an assertEquals procedure call:
         assertEquals( <expected value>, <computed values> ) ; 
         */
}
