Test class for
Singleton2
- Construct two
Singleton2
instances/objects using the
Singleton2.uniqueinstance
attribute
- Set the
Singleton2.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 singleton2: models.Singleton1@70dea4e
First singleton2 data value = 34
Second singleton2: models.Singleton1@70dea4e
Second singleton2 data value = 34
CHECK - on the previous output - that the references and values for both objects are the same