void () { myResultsViewer.onTestStarted(createTestProxy("some_test", myTestsRootNode)); assertEquals(0, myResultsViewer.getTotalTestCount()); myResultsViewer.onTestStarted(createTestProxy("some_test2", myTestsRootNode)); assertEquals(0, myResultsViewer.getTotalTestCount()); // count will be updated only on tests finished if wasn't set myResultsViewer.onTestingFinished(myTestsRootNode); assertEquals(2, myResultsViewer.getTotalTestCount()); }