diff options
author | Jim Hahn <jrh3@att.com> | 2020-05-15 14:46:15 -0400 |
---|---|---|
committer | Jim Hahn <jrh3@att.com> | 2020-05-15 14:52:15 -0400 |
commit | 5210055db2f00f42fea4717b2726dda52e1c1a59 (patch) | |
tree | 435bf700d4f5096b23126f899ab36fe3cc0de888 /models-interactions/model-simulators/src/test/java | |
parent | afe5abed95c6cbfe239066e267d9c10a71f20623 (diff) |
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>
Diffstat (limited to 'models-interactions/model-simulators/src/test/java')
-rw-r--r-- | models-interactions/model-simulators/src/test/java/org/onap/policy/simulators/SoSimulatorTest.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/models-interactions/model-simulators/src/test/java/org/onap/policy/simulators/SoSimulatorTest.java b/models-interactions/model-simulators/src/test/java/org/onap/policy/simulators/SoSimulatorTest.java index d8613c8b7..fbeb08466 100644 --- a/models-interactions/model-simulators/src/test/java/org/onap/policy/simulators/SoSimulatorTest.java +++ b/models-interactions/model-simulators/src/test/java/org/onap/policy/simulators/SoSimulatorTest.java @@ -144,7 +144,7 @@ public class SoSimulatorTest { "username", "password", new HashMap<>(), "application/json", request); assertNotNull(httpDetails); - assertThat(httpDetails.second).contains("\"COMPLETE\"").doesNotContain("requestSelfLink"); + assertThat(httpDetails.second).contains("\"COMPLETE\"").contains("requestSelfLink"); /* * Repeat, but set the flag indicating that the request should yield incomplete. @@ -186,7 +186,7 @@ public class SoSimulatorTest { "username", "password", new HashMap<>(), "application/json", request); assertNotNull(httpDetails); - assertThat(httpDetails.second).contains("\"COMPLETE\"").doesNotContain("requestSelfLink"); + assertThat(httpDetails.second).contains("\"COMPLETE\"").contains("requestSelfLink"); /* * Repeat, but set the flag indicating that the request should yield incomplete. |