prj03-group06/src/tests/SunsetTest.java
@Test
	public void testHour() {
		String sunset = gui.getSunset();
		int hour = Integer.parseInt(sunset.substring(9, 10));
		boolean pmHour;
		if (hour >= 5 && hour <= 8) {
			pmHour = true;
		} else {
			pmHour = false;
		}
		assertTrue(pmHour, "P.M. hour isn't within 05:-- to 08:--");
	}
/**
	 * Test the hour of the sunset
	 */
Test the hour of the sunset
Test the hour of the sunset
@Test
	public void testHour() {
		String sunset = gui.getSunset();
		int hour = Integer.parseInt(sunset.substring(9, 10));
		boolean pmHour;
		if (hour >= 5 && hour <= 8) {
			pmHour = true;
		} else {
			pmHour = false;
		}
		assertTrue(pmHour, "P.M. hour isn't within 05:-- to 08:--");
	}
@ Test public void testHour ( ) { String sunset = gui . getSunset ( ) ; int hour = Integer . parseInt ( sunset . substring ( 9 , 10 ) ) ; boolean pmHour ; if ( hour >= 5 && hour <= 8 ) { pmHour = true ; } else { pmHour = false ; } assertTrue ( pmHour , "P.M. hour isn't within 05:-- to 08:--" ) ; }
Test the hour of the sunset
Test the hour of the sunset