I'm new to programming and I was wondering what assertEquals does in this specific test. It says s1.toString(), however there is no s1 object, only an s object. Will this test come up as an error?
@Test
public void testName() {
Student s = new UndergraduateStudent("Fred", "Bloggs");
assertEquals(s1.toString(), "Fred Bloggs");
}
Aucun commentaire:
Enregistrer un commentaire