prj03-group06/src/tests/DateTest.java
@Test
	public void testMonth() {
		String date = gui.getDate();
		String month = date.substring(11, 14);
		Date currentDate = new Date();
		String today = currentDate.toString();
		String currentMonth = today.substring(4, 7);
		if (month.equals(currentMonth)) {
			assertTrue(true);
		} else {
			fail("Months of the year don't match");
		}
	}
/**
	 * Test to get the month of the year
	 */
Test to get the month of the year
Test to get the month of the year
@Test
	public void testMonth() {
		String date = gui.getDate();
		String month = date.substring(11, 14);
		Date currentDate = new Date();
		String today = currentDate.toString();
		String currentMonth = today.substring(4, 7);
		if (month.equals(currentMonth)) {
			assertTrue(true);
		} else {
			fail("Months of the year don't match");
		}
	}
@ Test public void testMonth ( ) { String date = gui . getDate ( ) ; String month = date . substring ( 11 , 14 ) ; Date currentDate = new Date ( ) ; String today = currentDate . toString ( ) ; String currentMonth = today . substring ( 4 , 7 ) ; if ( month . equals ( currentMonth ) ) { assertTrue ( true ) ; } else { fail ( "Months of the year don't match" ) ; } }
Test to get the month of the year
Test to get the month of the year