I use the Data singleton approach. I have a no-argument constructor that depends on the database file location from my properties file. Also, I plan to submit with no properties file and let the system build one after the user enters the values.
I could add a constructor that accepts the file name, but I recall reading out here somewhere that a singleton constructor typically should not accept arguments.
Will this get me in trouble for the automated
testing? Say, for instance, if their automated test runs before they even use the GUI to choose the database location. I plan to document this, but could I fail the automated testing before they even look at my documentation?
Thoughts?
Ken - I would also be interested in your opinion since I know you were the singleton approach and passed with flying colors.
TJ