mirror of
https://github.com/corda/corda.git
synced 2025-06-21 00:23:09 +00:00
Testing: add a unit test that runs the IRS simulation through to completion, to ensure some test coverage of TwoPartyDealProtocol until it's merged with TPTP. Fix an issue that was breaking the simulation.
This commit is contained in:
@ -4,11 +4,9 @@ import com.google.common.base.Throwables
|
||||
import core.utilities.BriefLogFormatter
|
||||
import org.junit.Test
|
||||
|
||||
/**
|
||||
* This test doesn't check anything except that the simulation finishes and there are no exceptions at any point.
|
||||
* The details of the IRS contract are verified in other unit tests.
|
||||
*/
|
||||
class IRSSimulationTest {
|
||||
// TODO: These tests should be a lot more complete.
|
||||
|
||||
@Test fun `runs to completion`() {
|
||||
BriefLogFormatter.initVerbose("messaging")
|
||||
val sim = IRSSimulation(false, null)
|
||||
@ -20,4 +18,4 @@ class IRSSimulationTest {
|
||||
throw Throwables.getRootCause(e)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user