prj03-group06/src/tests/SunriseTest.java
@Test
	public void testMorning() {
		String sunrise = gui.getSunrise();
		String period =  sunrise.substring(sunrise.length()-2, sunrise.length());
		boolean morning;
		if (period.equals("AM")) {
			morning = true;
		} else {
			morning = false;
		}
		assertTrue(morning, "Doesn't read as \"a.m.\", either because it is misspelled or it is p.m.");
	}
/**
	 * Test for the period when sunrise occurs
	 */
Test for the period when sunrise occurs
Test for the period when sunrise occurs
@Test
	public void testMorning() {
		String sunrise = gui.getSunrise();
		String period =  sunrise.substring(sunrise.length()-2, sunrise.length());
		boolean morning;
		if (period.equals("AM")) {
			morning = true;
		} else {
			morning = false;
		}
		assertTrue(morning, "Doesn't read as \"a.m.\", either because it is misspelled or it is p.m.");
	}
@ Test public void testMorning ( ) { String sunrise = gui . getSunrise ( ) ; String period = sunrise . substring ( sunrise . length ( ) - 2 , sunrise . length ( ) ) ; boolean morning ; if ( period . equals ( "AM" ) ) { morning = true ; } else { morning = false ; } assertTrue ( morning , "Doesn't read as \"a.m.\", either because it is misspelled or it is p.m." ) ; }
Test for the period when sunrise occurs
Test for the period when sunrise occurs