Skip to content

Commit

Permalink
Simplify CashTests and add some comments/convenience APIs to MockServ…
Browse files Browse the repository at this point in the history
…ices (corda#2241)
  • Loading branch information
Mike Hearn authored Jan 25, 2018
1 parent 242d9cf commit 17a6f61
Show file tree
Hide file tree
Showing 5 changed files with 291 additions and 298 deletions.
1 change: 1 addition & 0 deletions core/src/main/kotlin/net/corda/core/crypto/Crypto.kt
Original file line number Diff line number Diff line change
Expand Up @@ -497,6 +497,7 @@ object Crypto {
* It returns true if it succeeds, but it always throws an exception if verification fails.
* Strategy on identifying the actual signing scheme is based on the [PublicKey] type, but if the schemeCodeName is known,
* then better use doVerify(schemeCodeName: String, publicKey: PublicKey, signatureData: ByteArray, clearData: ByteArray).
*
* @param publicKey the signer's [PublicKey].
* @param signatureData the signatureData on a message.
* @param clearData the clear data/message that was signed (usually the Merkle root).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public class CommercialPaperTest {
private static final TestIdentity BOB = new TestIdentity(BOB_NAME, 80L);
private static final TestIdentity MEGA_CORP = new TestIdentity(new CordaX500Name("MegaCorp", "London", "GB"));
private final byte[] defaultRef = {123};
private final MockServices ledgerServices = new MockServices(emptyList(), makeTestIdentityService(MEGA_CORP.getIdentity()));
private final MockServices ledgerServices = new MockServices(MEGA_CORP);

// DOCSTART 1
private ICommercialPaperState getPaper() {
Expand Down
Loading

0 comments on commit 17a6f61

Please sign in to comment.