mirror of
https://github.com/corda/corda.git
synced 2025-06-19 23:53:52 +00:00
* Add powershell script to update testing package imports * Make sure script works with java files * Address review comments
This commit is contained in:
committed by
Katelyn Baker
parent
3606cef0a1
commit
27fb4b8fe8
4
tools/scripts/upgrade-test-packages.ps1
Normal file
4
tools/scripts/upgrade-test-packages.ps1
Normal file
@ -0,0 +1,4 @@
|
||||
Get-ChildItem $args[0] -Include *.kt, *.java -Recurse |
|
||||
Foreach-Object {
|
||||
(Get-Content $_.FullName) -replace 'net.corda.testing.(\*|generateStateRef|freeLocalHostAndPort|getFreeLocalPorts|getTestPartyAndCertificate|TestIdentity|chooseIdentity|singleIdentity|TEST_TX_TIME|DUMMY_NOTARY_NAME|DUMMY_BANK_A_NAME|DUMMY_BANK_B_NAME|DUMMY_BANK_C_NAME|BOC_NAME|ALICE_NAME|BOB_NAME|CHARLIE_NAME|DEV_INTERMEDIATE_CA|DEV_ROOT_CA|dummyCommand|DummyCommandData|MAX_MESSAGE_SIZE|SerializationEnvironmentRule|setGlobalSerialization|expect|sequence|parallel|replicate|genericExpectEvents)', 'net.corda.testing.core.$1' -replace 'net.corda.testing.FlowStackSnapshotFactoryImpl', 'net.corda.testing.services.FlowStackSnapshotFactoryImpl' -join "`r`n" | Set-Content -NoNewline -Force $_.FullName
|
||||
}
|
Reference in New Issue
Block a user