Skip to content
This repository has been archived by the owner on Sep 26, 2019. It is now read-only.

Commit

Permalink
fix utf8 encoding issue
Browse files Browse the repository at this point in the history
  • Loading branch information
antonydenyer committed Jan 18, 2019
1 parent c7e12a7 commit e6bec0d
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
*/
package tech.pegasys.pantheon.orion;

import static java.nio.charset.StandardCharsets.UTF_8;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;

Expand Down Expand Up @@ -78,6 +79,6 @@ public void testSendAndReceive() throws IOException {
ReceiveContent rc = new ReceiveContent(sr.getKey(), publicKeys.get(1));
ReceiveResponse rr = orion.receive(rc);

assertEquals(PAYLOAD, new String(rr.getPayload()));
assertEquals(PAYLOAD, new String(rr.getPayload(), UTF_8));
}
}

0 comments on commit e6bec0d

Please sign in to comment.