Cannot parse finishTime in legacy SO responses 56/107756/2
authorJim Hahn <jrh3@att.com>
Fri, 15 May 2020 18:46:15 +0000 (14:46 -0400)
committerJim Hahn <jrh3@att.com>
Fri, 15 May 2020 18:52:15 +0000 (14:52 -0400)
commit5210055db2f00f42fea4717b2726dda52e1c1a59
tree435bf700d4f5096b23126f899ab36fe3cc0de888
parentafe5abed95c6cbfe239066e267d9c10a71f20623
Cannot parse finishTime in legacy SO responses

Adding the actual sample responses to the SO simulator broke the
drools-apps junit for usecases.  Fixed (in theory) by updating the
legacy SO actor to properly decode the finishTime.  Refactored the
new SO actor, extracting the type adapter into its own class file
so it could be shared between the new and legacy actors.

Issue-ID: POLICY-2570
Change-Id: I061b603172440b1a91da16d09b4f2a0d289dfc41
Signed-off-by: Jim Hahn <jrh3@att.com>
models-interactions/model-actors/actor.so/src/main/java/org/onap/policy/controlloop/actor/so/SoOperation.java
models-interactions/model-impl/so/src/main/java/org/onap/policy/so/util/Serialization.java
models-interactions/model-impl/so/src/main/java/org/onap/policy/so/util/SoLocalDateTimeTypeAdapter.java [new file with mode: 0644]
models-interactions/model-simulators/src/main/java/org/onap/policy/simulators/SoSimulatorJaxRs.java
models-interactions/model-simulators/src/main/resources/org/onap/policy/simulators/so/so.immediate.success.json [new file with mode: 0644]
models-interactions/model-simulators/src/test/java/org/onap/policy/simulators/SoSimulatorTest.java