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:
Mike Hearn
2016-05-13 16:49:53 +02:00
committed by Mike Hearn
parent f9920cbc28
commit e475b146d9
4 changed files with 244 additions and 65 deletions

View File

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