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());
}