Port of schuchert.wikispaces.com


JMock-Minimal_Failing_Example

JMock-Minimal_Failing_Example

@Test
public void aTestThatAlwaysFails() {
    context.checking(new Expectations() {
        {
        }
    });
    testDoubleDie.roll();
}

Why does this fail? Assuming two things:

The any use of any method not explicitly stated in the Expectations will cause an unexpected invocation.


Comments

" Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.