prj03-group06/src/tests/DateTest.java
@Test
	public void testDayOfWeek() {
		String date = gui.getDate();
		String day = date.substring(6, 9);
		Date currentDate = new Date();
		String today = currentDate.toString();
		String currentDay = today.substring(0, 3);
		if (day.equals(currentDay)) {
			assertTrue(true);
		} else {
			fail("Days of the week don't match");
		}
	}
/**
	 * Test to get the day of the week
	 */
Test to get the day of the week
Test to get the day of the week
@Test
	public void testDayOfWeek() {
		String date = gui.getDate();
		String day = date.substring(6, 9);
		Date currentDate = new Date();
		String today = currentDate.toString();
		String currentDay = today.substring(0, 3);
		if (day.equals(currentDay)) {
			assertTrue(true);
		} else {
			fail("Days of the week don't match");
		}
	}
@ Test public void testDayOfWeek ( ) { String date = gui . getDate ( ) ; String day = date . substring ( 6 , 9 ) ; Date currentDate = new Date ( ) ; String today = currentDate . toString ( ) ; String currentDay = today . substring ( 0 , 3 ) ; if ( day . equals ( currentDay ) ) { assertTrue ( true ) ; } else { fail ( "Days of the week don't match" ) ; } }
Test to get the day of the week
Test to get the day of the week