Refactoring: renamed 'security' to 'cryptography'
This commit is contained in:
@ -18,5 +18,5 @@ dependencies {
|
||||
testCompile 'junit:junit:4.12'
|
||||
testCompile 'com.h2database:h2:1.4.190'
|
||||
testCompile 'org.mockito:mockito-core:1.10.19'
|
||||
testCompile project(':security-bc')
|
||||
testCompile project(':cryptography-bc')
|
||||
}
|
@ -55,7 +55,7 @@ public class JdbcMessageRepositoryTest extends TestBase {
|
||||
addressRepo = new JdbcAddressRepository(config);
|
||||
repo = new JdbcMessageRepository(config);
|
||||
new InternalContext(new BitmessageContext.Builder()
|
||||
.security(security())
|
||||
.cryptography(security())
|
||||
.addressRepo(addressRepo)
|
||||
.messageRepo(repo)
|
||||
);
|
||||
|
@ -18,7 +18,7 @@ package ch.dissem.bitmessage.repository;
|
||||
|
||||
import ch.dissem.bitmessage.InternalContext;
|
||||
import ch.dissem.bitmessage.ports.MultiThreadedPOWEngine;
|
||||
import ch.dissem.bitmessage.security.bc.BouncySecurity;
|
||||
import ch.dissem.bitmessage.cryptography.bc.BouncyCryptography;
|
||||
import ch.dissem.bitmessage.utils.Singleton;
|
||||
|
||||
import static org.mockito.Mockito.mock;
|
||||
@ -29,7 +29,7 @@ import static org.mockito.Mockito.when;
|
||||
*/
|
||||
public class TestBase {
|
||||
static {
|
||||
BouncySecurity security = new BouncySecurity();
|
||||
BouncyCryptography security = new BouncyCryptography();
|
||||
Singleton.initialize(security);
|
||||
InternalContext ctx = mock(InternalContext.class);
|
||||
when(ctx.getProofOfWorkEngine()).thenReturn(new MultiThreadedPOWEngine());
|
||||
|
Reference in New Issue
Block a user