Added test for the case that rhythm was inactive for a few days and
authorMyrle Krantz <myrle@apache.org>
Thu, 14 Dec 2017 11:04:21 +0000 (12:04 +0100)
committerMyrle Krantz <myrle@apache.org>
Thu, 14 Dec 2017 11:04:21 +0000 (12:04 +0100)
commiteefbf8eb688aae357264eb70e41d2b4c43fe3697
treef967723b3b0ab0d7ee9065cb6b34f1ca180535e9
parent9fd70a9992e8e187864873148f96b42cc867b01e
Added test for the case that rhythm was inactive for a few days and
needs to "make up" beats. Because this required changing db data in the
test I discovered a locking bug by writing this test.  The locking changes
I made here may be sufficient to allow for a concurrent deployment of rhythm.
Maybe.  But that should be tested to be sure.
component-test/src/main/java/io/mifos/rhythm/AbstractRhythmTest.java
component-test/src/main/java/io/mifos/rhythm/TestBeats.java
service/src/main/java/io/mifos/rhythm/service/internal/command/handler/BeatCommandHandler.java
service/src/main/java/io/mifos/rhythm/service/internal/repository/ApplicationRepository.java
service/src/main/java/io/mifos/rhythm/service/internal/repository/BeatRepository.java
service/src/main/java/io/mifos/rhythm/service/internal/service/Drummer.java
service/src/main/java/io/mifos/rhythm/service/rest/BeatRestController.java