prj03-group06/src/tests/DateTest.java
@Test
	public void testMonthDay() {
		String date = gui.getDate();
		String monthDay = date.substring(15, 17);
		Date currentDate = new Date();
		String today = currentDate.toString();
		String currentMonthDay = today.substring(8, 10);
		if (monthDay.equals(currentMonthDay)) {
			assertTrue(true);
		} else {
			fail("Days of the month don't match");
		}
	}
/**
	 * Test to get the day of the month
	 */
Test to get the day of the month
Test to get the day of the month
@Test
	public void testMonthDay() {
		String date = gui.getDate();
		String monthDay = date.substring(15, 17);
		Date currentDate = new Date();
		String today = currentDate.toString();
		String currentMonthDay = today.substring(8, 10);
		if (monthDay.equals(currentMonthDay)) {
			assertTrue(true);
		} else {
			fail("Days of the month don't match");
		}
	}
@ Test public void testMonthDay ( ) { String date = gui . getDate ( ) ; String monthDay = date . substring ( 15 , 17 ) ; Date currentDate = new Date ( ) ; String today = currentDate . toString ( ) ; String currentMonthDay = today . substring ( 8 , 10 ) ; if ( monthDay . equals ( currentMonthDay ) ) { assertTrue ( true ) ; } else { fail ( "Days of the month don't match" ) ; } }
Test to get the day of the month
Test to get the day of the month