This week's giveaway is in the Programmer Certification (OCPJP) forum.
We're giving away four copies of Java Mock Exams (software) and have David Mayer on-line!
See this thread for details.
Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) 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.
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!