Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How Oracle's automated test load DB file?

 
Himai Minh
Ranch Hand
Posts: 1254
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We have to name the database access class to Data.java because the Oracle has an automated test run using Data instance.
In Data.java, we don't need to define a load data method to load the DB file. How can the automated test load DB file?
In Roberto's test, there is a DAOFactory class that loads all the data. But not everyone has DAOFactory to load the data.
Will I fail the automated test if I don't have a DAOFactory class?
 
Roel De Nijs
Sheriff
Posts: 9934
113
AngularJS Chrome Eclipse IDE Hibernate Java jQuery MySQL Database Spring Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is no requirement that the database file should be loaded.

The read()-method could simply open the file, move file pointer to record location, read the record and close the file. No need to load database file.

A DAOFactory is not a (must) requirement, so you won't fail if you don't provide one.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic