src/test/java/SignTest.java
@Test
 public void save_savesStudentIdIntoDB_true() {
 Individual testIndividual = new Individual("Vivian", 1);
  testIndividual.save();
 Sign anotherSign = new Sign(testIndividual.getId());
 anotherSign.save();
 Sign savedSign = Sign.find(anotherSign.getId());
 assertEquals(savedSign.getStudentId(), testIndividual.getId());
 }
// save method saves StudentId in the DB
save method saves StudentId in the DB
save method saves StudentId in the DB
@Test
 public void save_savesStudentIdIntoDB_true() {
 Individual testIndividual = new Individual("Vivian", 1);
  testIndividual.save();
 Sign anotherSign = new Sign(testIndividual.getId());
 anotherSign.save();
 Sign savedSign = Sign.find(anotherSign.getId());
 assertEquals(savedSign.getStudentId(), testIndividual.getId());
 }
@ Test public void save_savesStudentIdIntoDB_true ( ) { Individual testIndividual = new Individual ( "Vivian" , 1 ) ; testIndividual . save ( ) ; Sign anotherSign = new Sign ( testIndividual . getId ( ) ) ; anotherSign . save ( ) ; Sign savedSign = Sign . find ( anotherSign . getId ( ) ) ; assertEquals ( savedSign . getStudentId ( ) , testIndividual . getId ( ) ) ; }
save method saves StudentId in the DB
save method saves StudentId in the DB