Skip to content
Snippets Groups Projects
Commit 0288e27e authored by Benoit Lavenier's avatar Benoit Lavenier
Browse files

Clean code

parent b444222e
No related branches found
No related tags found
No related merge requests found
Subproject commit 0e30023fb29cd1525d43d804670c2aca608331e3
Subproject commit 76ab7adf4186c32b5083dd1ea82ae3e81ab602df
......@@ -157,7 +157,6 @@ public class WotRemoteServiceTest {
@Test
public void getCertification() throws Exception {
SecretBox secretBox = createSecretBox();
Wallet wallet = createTestWallet();
String userUid = "kimamila";
......@@ -184,28 +183,6 @@ public class WotRemoteServiceTest {
/* -- internal methods */
protected void assertBasicIdentity(BasicIdentity identity,
boolean withSignature) {
Assert.assertNotNull(identity);
Assert.assertNotNull(identity.getUid());
Assert.assertNotNull(identity.getPubkey());
if (withSignature) {
Assert.assertNotNull(identity.getSignature());
} else {
Assert.assertNull(identity.getSignature());
}
}
protected void assertIdentity(Identity identity) {
assertBasicIdentity(identity, true);
Assert.assertTrue(identity.getTimestamp() > 0);
}
protected Wallet createTestWallet() {
Wallet wallet = new Wallet(
resource.getFixtures().getCurrency(),
......@@ -224,12 +201,4 @@ public class WotRemoteServiceTest {
return secretBox;
}
protected Peer createTestPeer() {
Peer peer = new Peer(
Configuration.instance().getNodeHost(),
Configuration.instance().getNodePort());
return peer;
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment