Refactoring: renamed 'security' to 'cryptography'

This commit is contained in:
2016-01-10 13:38:32 +01:00
parent de0100e14f
commit 549c8854ed
30 changed files with 72 additions and 74 deletions

View File

@ -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')
}

View File

@ -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)
);

View File

@ -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());