vendredi 22 juillet 2016

Test CRUD operation in database with JUnit

I've got a problem with testing CRUD operations using JUnit.

I have a Java application that works with a local db and I have to test the CRUD operations for an entity of this db.

How can I test CRUD operations if I can't actually use them?

For example, to test if a Create operation works, I have to verify that the new created entry actually corresponds to the input data. How can I do this if I can't access the Read operation ?

Aucun commentaire:

Enregistrer un commentaire