Migrated cryptography and some improvements

This commit is contained in:
2017-06-08 21:56:31 +02:00
parent 83e50e1ad1
commit 1d3340a547
13 changed files with 270 additions and 316 deletions

View File

@ -36,7 +36,7 @@ public class WifExporterTest {
@Before
public void setUp() throws Exception {
ctx = new BitmessageContext.Builder()
.cryptography(new BouncyCryptography())
.cryptography(BouncyCryptography.INSTANCE)
.networkHandler(mock(NetworkHandler.class))
.inventory(mock(Inventory.class))
.messageRepo(mock(MessageRepository.class))
@ -104,4 +104,4 @@ public class WifExporterTest {
exporter.addIdentity(chan);
assertEquals(expected, exporter.toString());
}
}
}

View File

@ -36,7 +36,7 @@ public class WifImporterTest {
@Before
public void setUp() throws Exception {
ctx = new BitmessageContext.Builder()
.cryptography(new BouncyCryptography())
.cryptography(BouncyCryptography.INSTANCE)
.networkHandler(mock(NetworkHandler.class))
.inventory(mock(Inventory.class))
.messageRepo(mock(MessageRepository.class))
@ -113,4 +113,4 @@ public class WifImporterTest {
BitmessageAddress chan = importer.getIdentities().get(0);
assertTrue(chan.isChan());
}
}
}