Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

B&S: How the examiner to test delete and create function in database?

 
lambertlee Li
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My instructions said on GUI I am just required to supply search/book(update) function. So from GUI side I don't provide the delete/create functionality. Then how the examiner to test my delete/create method on my database server?
 
Nicolas Stern
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I'm in the same situation: my GUI requirements just state that I must implement the select and update function, but my DB interface states that I have to implement the delete functionality.

To test the delete functionality of the DB interface, I just write a test class that calls the appropriate delete method with appropriate arguments. I guess the Examiner will do the same.

HTH - Cheers - Nic
 
Jeroen T Wenting
Ranch Hand
Posts: 1847
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
he can test them the same way you can: by writing a small test application and running that.
As the API is pretty standard between assignments, they can even have a large part of it predefined and just need to ask some launching stubs to interface with yours.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic