/**
* Run a successful test. values should be valid.
*/
private void runPassTest(int year, int month, String tz) throws Exception {
YearMonth oYearMonth = null;
try {
oYearMonth = new YearMonth(year, month, tz);
}
catch (Exception e) { // catch the validation exception
assertTrue("Validation exception thrown on valid input", false);
}
assertEquals("YearMonth year not equal", year, oYearMonth.getYear());
assertEquals("YearMonth month not equal", month, oYearMonth.getMonth());
assertEquals("YearMonth timezone not equal", tz, oYearMonth.getTimezone());
}