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