Win a copy of Java XML & JSON this week in the XML and Related Technologies forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Devaka Cooray
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Junilu Lacar
  • Paul Clapham
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • salvin francis
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

[HELP] : Creating an object model and establishing test cases.  RSS feed

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A library has a large collection of books organized in different rooms, rows and book-shelves that are all
numbered.
The local librarian is working on an application in which he can register the books and make inventory lists
for a given room, row, or book-shelf. Also, it must be possible to locate a given book by its ISBN number.

Task is to:
- Create an object model that represents the necessary entities.
- Establish a small set of test data.
- Add necessary object collections to enable efficient creation of the inventory lists and locating
books.
- Create objects and populate collections with the test data. Insertion speed of new books is not relevant.
- Establish a set of test cases that verifies the solution against the test data.

How do i create an object model an establish a small set of test data? and establish a set of test cases ?
can someone help me with this?  
 
Sheriff
Posts: 12952
216
Android Debian Eclipse IDE IntelliJ IDE Java Linux Mac Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Joe Farmer wrote:How do i create an object model an establish a small set of test data? and establish a set of test cases ?
can someone help me with this?


My approach would be somewhat backwards: start by identifying tasks / things you want to be able to do (e.g. register books, make inventory lists, find by ISBN, etc.) then look at what information you have that would be related to these activities, then identify ways to test whether a user is able complete a task. Only when that context has been established would I start trying to figure out how to organize the information around objects that would be used to complete a task.

Give that a shot and see what you can come up with then come back and ask detailed questions.
 
Water! People swim in water! Even tiny ads swim in water:
Programmatically Create PDF Using Free Spire.PDF with Java
https://coderanch.com/wiki/703735/Programmatically-Create-PDF-Free-Spire
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!