Commit Graph

44 Commits

Author SHA1 Message Date
Ilkka Seppälä 417f21ed3d Code cleanup (#1461)
* Code cleanup

* Fix flux tests

* Fix checkstyle errors

* Fix compile error
2020-07-30 20:28:47 +03:00
Anurag Agarwal f835d3d516 Java 11 migrate remaining (g,h,i) (#1116)
* Moves game-loop to Java 11

* Moves guarded-suspension to Java 11

* Moves half-sync-half-async to Java 11

* Moves hexagonal to Java 11

* Moves intercepting-filter to Java 11

* Moves interpreter to Java 11

* Moves iterator to Java 11
2019-12-20 07:11:30 +02:00
Leon Mak c8a481bb77 Add java 11 support for #987 (o-t) (#1051)
* Use java 11

* Use .of
- Replace Arrays.asList with List.of
- Replace HashSet<>(List.of()) with Set.of

* Formatting
2019-10-29 08:37:40 +02:00
Leon Mak dd971d8c19 Use java 11 (#1050) 2019-10-28 17:02:17 +02:00
Alexander Ivanov 4904d7eea0 #1021: Fix checkstyle warnings by changing the license header template (#1027)
* Add custom license header style in order to comply with Google's Checkstyle format

* Update license headers to comply with Google's Checkstyle format
2019-10-22 08:15:35 +03:00
Ilkka Seppälä 9ebbc421dd Update license headers 2019-10-12 20:05:54 +03:00
Paweł Matejko 4446e74338 Hexagonal pattern fixes (#814)
* Fixed wrong else condition

* Simplified creating Set of numbers

* Deleted unused imports

* Replaced 'for' loop with 'foreach' one

* Replaced explicit type with diamond

* Removed unnecesary brackets from lambda

* Removed unnecesary contains check before adding element to Set

* Fixed typo and changed non-english constant names
2018-10-27 16:39:16 +05:30
Narendra Pathai ab2c12e734 1) Refactored LotteryNumbers to use Joiner from guava library to join lottery numbers. 2) Solved potential thread safety issue in LotteryTicketId class, where it was using raw primitive value and incrementing it which is not thread-safe. So used AtomicInteger for brevity 3) assertEquals arguments were in incorrect order at many places, so changed order of those 4) Replaced assertFalse and assertTrue at some places with assertEquals and assertNotEquals for reducing complexity of code 5) Removed public modifiers from test cases, as they are no more needed by JUnit 5 2018-10-15 13:21:00 +05:30
Artur Mogozov 6694d742a3 Migrate to JUnit5 2017-12-31 16:29:48 +09:00
Mudit Porwal 09585c3874 Removed AvoidStarImport Rule
Added JavaDocType Rule
2017-03-22 01:16:02 +08:00
Ilkka Seppälä faa29f8025 Update license headers 2016-11-27 14:34:20 +02:00
Ilkka Seppälä 6aa58e8ae6 Hexagonal pattern: Remove unnecessary factories 2016-09-17 09:07:06 +03:00
Ilkka Seppälä df32a7b893 Hexagonal pattern: Introduced lottery events port with two adapters 2016-09-15 21:45:09 +03:00
Ilkka Seppälä 3cf2b34d2a Hexagonal pattern: Improve connection properties handling 2016-09-14 22:01:41 +03:00
Ilkka Seppälä 27e8cb7f2d Hexagonal pattern: Add separate class for Mongo connection properties 2016-09-14 19:25:26 +03:00
Ilkka Seppälä e685512ed5 Hexagonal pattern: Added Mongo based banking adapter and bound it in Guice production module 2016-09-11 23:19:02 +03:00
Ilkka Seppälä 59e6a0af85 Hexagonal pattern: Ignore Mongo repository test 2016-09-11 22:16:50 +03:00
Ilkka Seppälä 626c56730c Hexagonal pattern: Added Mongo based ticket repository and set production configuration to use that 2016-09-11 20:02:34 +03:00
Ilkka Seppälä 4410419914 Hexagonal pattern: Simplified lottery ticket ids 2016-09-11 10:34:12 +03:00
Ilkka Seppälä e17d72bca8 Hexagonal pattern: Added console interfaces for players and administration. 2016-09-10 14:28:05 +03:00
Ilkka Seppälä 121ed3cca8 Hexagonal pattern: Move lottery administration and service to the core. Introduce console interfaces for players and administartors. 2016-09-10 07:56:37 +03:00
Ilkka Seppälä adc6019c7e Hexagonal pattern: Remove interfaces with only one implementation 2016-09-10 07:14:24 +03:00
Ilkka Seppälä 0f2807b9cf Hexagonal pattern: More descriptive class names 2016-09-09 21:36:17 +03:00
Ilkka Seppälä 1b10ddbb73 Hexagonal pattern: Use Guice dependency injection 2016-09-06 22:39:39 +03:00
Ilkka Seppälä 3cb872807e Hexagonal pattern: remove unnecessary repository usage from a unit test 2016-09-04 10:33:26 +03:00
Ilkka Seppälä ab68129829 Hexagonal pattern: move business logic to core 2016-09-03 22:02:08 +03:00
Ilkka Seppälä ccc1ec921a Add readme and class diagram 2016-04-10 21:22:40 +03:00
Ilkka Seppälä 5de9c7e6b4 Lots of improvements to the example 2016-04-09 16:53:34 +03:00
Ilkka Seppälä 11c0654103 Add banking implementation 2016-03-26 21:47:25 +02:00
Ilkka Seppälä f620123cee Organize packages 2016-03-26 21:22:49 +02:00
Ilkka Seppälä ac468bb7e7 Added high level lottery test 2016-03-26 15:54:40 +02:00
Ilkka Seppälä 4bb7ddaec1 Work on admin tests 2016-03-26 12:42:23 +02:00
Ilkka Seppälä 39a1c1e956 Implement admin interface 2016-03-26 12:28:51 +02:00
Ilkka Seppälä 656b599687 Refactor to test utils 2016-03-26 12:28:31 +02:00
Ilkka Seppälä 8d6bc522cd Simplify lottery ticket submit 2016-03-26 11:03:40 +02:00
Ilkka Seppälä 266b658ab5 Refactor interfaces 2016-03-22 22:45:25 +02:00
Ilkka Seppälä d2f620a5e6 Added tests for lottery ticket repository 2016-03-22 21:27:13 +02:00
Ilkka Seppälä 2785f6915b Add lottery ticket check result 2016-03-20 11:10:06 +02:00
Ilkka Seppälä 804ffc3ea7 Added lottery service interface 2016-03-20 10:49:31 +02:00
Ilkka Seppälä 035b14fef8 Added lottery ticket and unit tests 2016-03-19 21:57:57 +02:00
Ilkka Seppälä 81718eb8ae Added player details and unit tests 2016-03-19 21:08:55 +02:00
Ilkka Seppälä cd3a5d48d8 Work on lottery numbers unit tests 2016-03-19 20:37:36 +02:00
Ilkka Seppälä b0f96adeb1 Added class for lottery numbers and unit tests for it 2016-03-19 18:13:30 +02:00
Ilkka Seppälä 2ed089900d Initial commit for Hexagonal Architecture pattern 2016-03-13 17:23:15 +02:00