/** Test of save method, of class SimpleStudentRepository. */ @Test public void testSave() { System.out.println("save"); Student S596 = new Student("Chamila", "Dilshan", 3, "Galle"); instance.save(S596); if (instance.find(3).equals(null)) { Assert.fail("Wrong execute"); } // TODO review the generated test code and remove the default call to fail. // fail("The test case is a prototype."); }
@Before public void setUp() { Student S596 = new Student("Chamila", "Dilshan", 3, "Galle"); instance.save(S596); }