src/test/java/GroupTest.java
@Test
public void delete_deletesGroupAndIndividuals_true() {
   Individual mIndividual = new Individual("Vivian", 1);
  mIndividual.save();
  mGroup.save();
  int mGroupId = mGroup.getId();
  int mIndividualId = mIndividual.getId();
  mGroup.getIndividuals();
  mGroup.delete();
  assertEquals(null, Group.find(mGroupId));
}
// deleting a group from the database
deleting a group from the database
deleting a group from the database
@Test
public void delete_deletesGroupAndIndividuals_true() {
   Individual mIndividual = new Individual("Vivian", 1);
  mIndividual.save();
  mGroup.save();
  int mGroupId = mGroup.getId();
  int mIndividualId = mIndividual.getId();
  mGroup.getIndividuals();
  mGroup.delete();
  assertEquals(null, Group.find(mGroupId));
}
@ Test public void delete_deletesGroupAndIndividuals_true ( ) { Individual mIndividual = new Individual ( "Vivian" , 1 ) ; mIndividual . save ( ) ; mGroup . save ( ) ; int mGroupId = mGroup . getId ( ) ; int mIndividualId = mIndividual . getId ( ) ; mGroup . getIndividuals ( ) ; mGroup . delete ( ) ; assertEquals ( null , Group . find ( mGroupId ) ) ; }
deleting a group from the database
deleting a group from the database