@Test public void getTotalTest() { tagStat.addSkipped(100); tagStat.addFailed(20); tagStat.addPassed(7); assertThat(tagStat.getTotal(), is(127)); }
public int getTotal() { return passed + failed + skipped; }
ResultCount { public int getTotal() { return passed + failed + skipped; } }
ResultCount { public int getTotal() { return passed + failed + skipped; } ResultCount(); }
ResultCount { public int getTotal() { return passed + failed + skipped; } ResultCount(); void addPassed(int passedCount); void addFailed(int failedCount); void addSkipped(int skippedCount); int getPassed(); int getFailed(); int getSkipped(); int getTotal(); @Override String toString(); }
ResultCount { public int getTotal() { return passed + failed + skipped; } ResultCount(); void addPassed(int passedCount); void addFailed(int failedCount); void addSkipped(int skippedCount); int getPassed(); int getFailed(); int getSkipped(); int getTotal(); @Override String toString();  }