Commit graph

7 commits

Author SHA1 Message Date
Reinhard Prechtl
0b8d94c670
Merge pull request #4 from rillig/fix-date-comparison-in-tests
Fix date comparison in JpaCityServiceTest
2017-12-30 23:21:21 +01:00
Roland Illig
9c715ce075 Fix test for updatedAt property
Both `save` and `updateCity` calls can happen at the same millisecond,
therefore the `updatedAt` was not necessarily increased.

The `Thread.sleep` method doesn't mention any guarantees of increasing
the system time mentioned by `LocalDateTime` used in `CityEntity`, but
the tests didn't fail again with this change, even when run repeatedly.
2017-11-12 15:17:24 +01:00
Sebastien Deleuze
5bbb84dce6 Refactor to idiomatic Spring + Kotlin code
- Usage of Kotlin JPA compiler plugin to generate default constructors
 - Jackson builder already register Kotlin module with sensible defaults
 - One liner syntax + type inference when possible
2017-06-16 22:36:18 +02:00
Reinhard Prechtl
925e76f497 Update Tests to validate more fields 2017-06-09 18:15:14 +02:00
Reinhard Prechtl
1a368d360c Simplify DTO creation 2017-06-09 18:14:17 +02:00
Reinhard Prechtl
2dfb86896d Rename the service implementation to better reflect its functionality 2017-06-09 14:06:05 +02:00
Reinhard Prechtl
7073606393 Initial commit 2017-06-09 12:20:53 +02:00