Verify a sequence of methods
This test method exists in a jMock_JUnit_4_Die_Skeleton.
Make sure that the testDoubleDie method will first have its roll() method called exactly once and then its getFaceValue() method called exactly once():
Port of schuchert.wikispaces.com
JMock-Verify_Method_Called_Exactly_Once
This test method exists in a jMock_JUnit_4_Die_Skeleton.
Make sure that the testDoubleDie method will first have its roll() method called exactly once and then its getFaceValue() method called exactly once():
Comments