SuiteRunIndexWrapper extends RunIndexWrapper<Suite> { @Override public int countUrls() { int quantityUrls = 0; Suite suite = objectToRunWrapper.getObjectToRun(); for (Test test : suite.getTests()) { quantityUrls += test.getUrls().size(); } return quantityUrls; } SuiteRunIndexWrapper(Run<Suite> objectToRunWrapper); @Override List<UrlPacket> getUrlPackets(); @Override int countUrls();  }
@Test public void countUrls_expectZero() { prepareZeroUrls(); assertThat(suiteRunIndexWrapper.countUrls(), is(0)); }
@Test public void countUrls_expectThree() { prepareThreeUrls(); assertThat(suiteRunIndexWrapper.countUrls(), is(3)); }