prj03-group06/src/tests/SunriseTest.java
@Test
	public void testHour() {
		String sunrise = gui.getSunrise();
		int hour = Integer.parseInt(sunrise.substring(10, 11));
		boolean morningHour;
		if (hour >= 5 && hour <= 8) {
			morningHour = true;
		} else {
			morningHour = false;
		}
		assertTrue(morningHour, "Morning hour isn't within 05:-- to 08:--");
	}
/**
	 * Test for the hour of sunrise
	 */
Test for the hour of sunrise
Test for the hour of sunrise
@Test
	public void testHour() {
		String sunrise = gui.getSunrise();
		int hour = Integer.parseInt(sunrise.substring(10, 11));
		boolean morningHour;
		if (hour >= 5 && hour <= 8) {
			morningHour = true;
		} else {
			morningHour = false;
		}
		assertTrue(morningHour, "Morning hour isn't within 05:-- to 08:--");
	}
@ Test public void testHour ( ) { String sunrise = gui . getSunrise ( ) ; int hour = Integer . parseInt ( sunrise . substring ( 10 , 11 ) ) ; boolean morningHour ; if ( hour >= 5 && hour <= 8 ) { morningHour = true ; } else { morningHour = false ; } assertTrue ( morningHour , "Morning hour isn't within 05:-- to 08:--" ) ; }
Test for the hour of sunrise
Test for the hour of sunrise