Running Tests

In this case we're only relying on junit to be added to the project dependencies and won't need to edit the pom.xml (because junit is already included there. In some of the more complex cases where mocking is required, we will need to add the dependencies listed in Appendix 2.

Select the new TicTacToeTest file in the project explorer, right click and Run 'TicTacToeTest' .

This will then show the results of the JUnit Run.As expected all the tests pass.

results matching ""

    No results matching ""