Test class for
Singleton3
- Construct two
Singleton3
instances/objects using the
Singleton3.instance()
method
- Set the
Singleton3.data
value of the first instance and print information
concerning both objects to the screen
- Check - on the screen output - that the references and values for both
objects are the same
EXPECTED (TYPICAL) OUTPUT
First singleton3: models.Singleton1@70dea4e
First singleton3 data value = 34
Second singleton3: models.Singleton1@70dea4e
Second singleton3 data value = 34
CHECK - on the previous output - that the references and values for both objects are the same