Commit Graph

14 Commits

Author SHA1 Message Date
Jeroen Meulemeester d0cdf84936 Added tests for singleton pattern 2015-12-30 20:55:21 +01:00
Ilkka Seppala 5f033be54f Fix PMD violations #327 2015-12-27 21:21:57 +02:00
Ilkka Seppala cec9a99410 Adjust checkstyle rules. Make checkstyle fail the build when violations are found. Correct all current checkstyle violations. 2015-12-25 23:49:28 +02:00
Ankur Kaushal 306b1f3d31 Reformat rest of the design patterns - Issue #224 2015-11-01 21:29:13 -05:00
Richard Jones 7ab799c452 Synchronise the list as multiple threads are calling it 2015-10-13 21:23:32 -03:00
Richard Jones 0d068a35d8 Update comment 2015-10-12 05:21:33 -03:00
Richard Jones 31e2940eb1 Remove error unit test so pull request can proceed. Will check this at at later date 2015-10-11 22:11:03 -03:00
Richard Jones 0107b24976 Fix unit test by makinig getField use the field name directly 2015-10-11 22:06:00 -03:00
Richard Jones 45b0ac386e Add additional unit tests to show that singletons can be created in single thread environment and multithread environment. Also add a test to demonstrate a whole with Singleton when instantiating using reflection
Add some logging. Tests pass locally but not on github?
2015-10-11 21:54:45 -03:00
Richard Jones 6ba7f5ea04 Add additional unit tests to show that singletons can be created in single thread environment and multithread environment. Also add a test to demonstrate a whole with Singleton when instantiating using reflection 2015-10-11 21:32:51 -03:00
Ilkka Seppala 4bf2e3f16d #107 JavaDoc for Singleton 2015-08-21 23:09:51 +03:00
Ilkka Seppala 96241f63d2 #100 Added test case for demonstrating the thread safety issues of a
naive lazy loaded Singleton implementation.
2015-07-09 10:36:33 +03:00
Ilkka Seppala 8524c75ba6 Changed package naming across all examples. 2015-05-31 11:55:18 +03:00
Ilkka Seppala 6301e0bc11 Added unit tests for each of the patterns. 2014-12-06 20:34:41 +02:00