src/test/java/SignTest.java
@Test
 public void save_recordsTimeOfSignInDatabase() {
	 testSign.save();
	 Timestamp savedSignin = Sign.find(testSign.getId()).getTimein();
	 Timestamp rightNow = new Timestamp(new Date().getTime());
	 assertEquals(rightNow.getDay(), savedSignin.getDay());
 }
//saving time when a student signs in
saving time when a student signs in
saving time when a student signs in
@Test
 public void save_recordsTimeOfSignInDatabase() {
	 testSign.save();
	 Timestamp savedSignin = Sign.find(testSign.getId()).getTimein();
	 Timestamp rightNow = new Timestamp(new Date().getTime());
	 assertEquals(rightNow.getDay(), savedSignin.getDay());
 }
@ Test public void save_recordsTimeOfSignInDatabase ( ) { testSign . save ( ) ; Timestamp savedSignin = Sign . find ( testSign . getId ( ) ) . getTimein ( ) ; Timestamp rightNow = new Timestamp ( new Date ( ) . getTime ( ) ) ; assertEquals ( rightNow . getDay ( ) , savedSignin . getDay ( ) ) ; }
saving time when a student signs in
saving time when a student signs in