Skip to content

Commit 56feed9

Browse files
formatting
1 parent 8d1a230 commit 56feed9

1 file changed

Lines changed: 7 additions & 8 deletions

File tree

src/test/java/org/privacyidea/TestPollTransaction.java

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -166,9 +166,9 @@ private void setPollTransactionResponse(ChallengeStatus challengeStatus, int tim
166166
.withPath("/validate/polltransaction")
167167
.withQueryStringParameter("transaction_id", "02659936574063359702"), Times.exactly(times))
168168
.respond(HttpResponse.response()
169-
.withBody("{\n\" id\": 1,\n\" jsonrpc\": \"2.0\",\n" + challengeStatusParameter +
170-
" \"result\": {\n \"status\": true\n },\n \"time\": 1589446811.1909237,\n \"version\": \"privacyIDEA 3.2.1\",\n" +
171-
" \"versionnumber\": \"3.2.1\",\n \"signature\": \"rsa_sha256_pss:\"\n}")
169+
.withBody("{\n\"id\": 1,\n\"jsonrpc\": \"2.0\",\n" + challengeStatusParameter +
170+
"\"result\": {\n\"status\": true\n},\n\"time\": 1589446811.1909237,\n\"version\": \"privacyIDEA 3.2.1\",\n" +
171+
"\"versionnumber\": \"3.2.1\",\n\"signature\": \"rsa_sha256_pss:\"\n}")
172172
.withDelay(TimeUnit.MILLISECONDS, 50));
173173
}
174174

@@ -177,21 +177,20 @@ private void setPollTransactionResponse(ChallengeStatus challengeStatus, int tim
177177
String challengeStatusParameter = "";
178178
if (challengeStatus == ChallengeStatus.accept)
179179
{
180-
challengeStatusParameter = " \"detail\": {\n \"challenge_status\": \"accept\"\n },\n";
180+
challengeStatusParameter = "\"detail\": {\n\"challenge_status\": \"accept\"\n},\n";
181181
}
182182
else if (challengeStatus == ChallengeStatus.declined)
183183
{
184-
challengeStatusParameter = " \"detail\": {\n \"challenge_status\": \"declined\"\n },\n";
184+
challengeStatusParameter = "\"detail\": {\n\"challenge_status\": \"declined\"\n},\n";
185185

186186
}
187187
else if (challengeStatus == ChallengeStatus.pending)
188188
{
189-
challengeStatusParameter = " \"detail\": {\n \"challenge_status\": \"pending\"\n },\n";
189+
challengeStatusParameter = "\"detail\": {\n\"challenge_status\": \"pending\"\n},\n";
190190
}
191191
return challengeStatusParameter;
192192
}
193-
194-
193+
195194
@After
196195
public void tearDown()
197196
{

0 commit comments

Comments
 (0)