Hi,
I have a singleton class which after acquiring the object(single) writes to a csv file.I thought of writing
unit test case for this singleton.However, I was not sure how to test this class using easy mock or
junit.
The test cases which I thought were
1)Test this class to ensure that it creates only one object.
2)Also, this silgetong writes to a csv file, so i though i will test that as well.
But I was not sure wht else i can test.
Also, how to test the case 1), i.e to ensure that it creates only one object