void () { // custom mode myResultsViewer.onCustomProgressTestsCategory("foo", 1); assertEquals(1, myResultsViewer.getTotalTestCount()); myResultsViewer.onCustomProgressTestStarted(); assertEquals(1, myResultsViewer.getTotalTestCount()); myResultsViewer.onCustomProgressTestStarted(); assertEquals(2, myResultsViewer.getTotalTestCount()); // disable custom mode myResultsViewer.onCustomProgressTestsCategory(null, 0); assertEquals(2, myResultsViewer.getTotalTestCount()); myResultsViewer.onTestsCountInSuite(1); assertEquals(3, myResultsViewer.getTotalTestCount()); myResultsViewer.onTestStarted(createTestProxy("some_test1", myTestsRootNode)); assertEquals(3, myResultsViewer.getTotalTestCount()); myResultsViewer.onTestStarted(createTestProxy("some_test2", myTestsRootNode)); assertEquals(4, myResultsViewer.getTotalTestCount()); }