Class | Description |
---|---|
TestSingleton1 |
Test class for
Singleton1 Construct two Singleton1 instances/objects using the
Singleton1.instance() method
Set the Singleton1.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 |
TestSingleton2 |
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 |
TestSingleton3 |
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 |
TestSingleton4 |
Test class for
Singleton4 Construct two Singleton4 instances/objects using the
Singleton4.getInstance() method
Set the Singleton4.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 |