Package com.domain.misc

Examples of com.domain.misc.Employee


        setProperty("id_var", "1234567890");
      }
    });
    Reader resource = Resources.getResourceAsReader("com/resources/nodelet_test.xml");
    parser.parse(resource);
    Employee emp = handler.getEmployee();
    assertEquals(1234567890, emp.getId());
    assertEquals("Jim", emp.getFirstName());
    assertEquals("Smith", emp.getLastName());
    assertEquals(new Date(1970 - 1900, 6 - 1, 15), emp.getBirthDate());
    assertEquals(5.8, emp.getHeight(), 0.0001);
    assertEquals("ft", emp.getHeightUnits());
    assertEquals(200, emp.getWeight(), 0.0001);
    assertEquals("lbs", emp.getWeightUnits());
  }
View Full Code Here

TOP

Related Classes of com.domain.misc.Employee

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.