Skip to content

Commit

Permalink
767: checkstyle fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
snazha-blkio committed Nov 15, 2018
1 parent 37b52b4 commit 8c2d7e7
Showing 1 changed file with 11 additions and 5 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package org.web3j.protocol.pantheon;

import org.junit.Test;

import org.web3j.protocol.ResponseTester;
import org.web3j.protocol.core.methods.response.EthAccounts;
import org.web3j.protocol.pantheon.response.PantheonEthAccountsMapResponse;
Expand All @@ -15,26 +16,31 @@ public void testClicqueGetSigners() {
buildResponse("{\n"
+ " \"jsonrpc\": \"2.0\",\n"
+ " \"id\": 1,\n"
+ " \"result\": [\"0x42eb768f2244c8811c63729a21a3569731535f06\",\"0x7ffc57839b00206d1ad20c69a1981b489f772031\",\"0xb279182d99e65703f0076e4812653aab85fca0f0\"]\n"
+ " \"result\": [\"0x42eb768f2244c8811c63729a21a3569731535f06\","
+ "\"0x7ffc57839b00206d1ad20c69a1981b489f772031\","
+ "\"0xb279182d99e65703f0076e4812653aab85fca0f0\"]\n"
+ "}");

EthAccounts ethAccounts = deserialiseResponse(
EthAccounts.class);
assertThat(ethAccounts.getAccounts().toString(),
is("[0x42eb768f2244c8811c63729a21a3569731535f06, 0x7ffc57839b00206d1ad20c69a1981b489f772031, 0xb279182d99e65703f0076e4812653aab85fca0f0]"));
is("[0x42eb768f2244c8811c63729a21a3569731535f06, "
+ "0x7ffc57839b00206d1ad20c69a1981b489f772031, "
+ "0xb279182d99e65703f0076e4812653aab85fca0f0]"));
}

@Test
public void testClicqueProposals() {
buildResponse("{\n"
+ " \"jsonrpc\": \"2.0\",\n"
+ " \"id\": 1,\n"
+ " \"result\": {\"0x42eb768f2244c8811c63729a21a3569731535f07\": false,\"0x12eb759f2222d7711c63729a45c3585731521d01\": true}\n"
+ "}");
+ " \"result\": {\"0x42eb768f2244c8811c63729a21a3569731535f07\": false,"
+ "\"0x12eb759f2222d7711c63729a45c3585731521d01\": true}\n}");

PantheonEthAccountsMapResponse mapResponse = deserialiseResponse(
PantheonEthAccountsMapResponse.class);
assertThat(mapResponse.getAccounts().toString(),
is("{0x42eb768f2244c8811c63729a21a3569731535f07=false, 0x12eb759f2222d7711c63729a45c3585731521d01=true}"));
is("{0x42eb768f2244c8811c63729a21a3569731535f07=false, "
+ "0x12eb759f2222d7711c63729a45c3585731521d01=true}"));
}
}

0 comments on commit 8c2d7e7

Please sign in to comment.