samedi 9 mai 2015

Test Driven Development applied to Database

Well i have this code:

which is a simple database able to insert, delete and modify Contactos. I need to make this class using Test Driven Development

i have began this way....

and function insertarContacto ( addContacto).

Using Eclipse the TestConnection works but testInsertarContacto doesn't.

Dont know if im beginning the right way an any hint or help would be apreciated. Also i have doubts if in testBaseDatosContactos i have to clean the database at beginning or end of tests or how to procceed...

Aucun commentaire:

Enregistrer un commentaire