Migrated cryptography and some improvements
This commit is contained in:
@ -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());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user