• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright (c) 2007 Mockito contributors
3  * This program is made available under the terms of the MIT License.
4  */
5 package org.mockito.internal.reporting;
6 
7 public class Discrepancy {
8 
9     private final int wantedCount;
10     private final int actualCount;
11 
Discrepancy(int wantedCount, int actualCount)12     public Discrepancy(int wantedCount, int actualCount) {
13         this.wantedCount = wantedCount;
14         this.actualCount = actualCount;
15     }
16 
getWantedCount()17     public int getWantedCount() {
18         return wantedCount;
19     }
20 
getPluralizedWantedCount()21     public String getPluralizedWantedCount() {
22         return Pluralizer.pluralize(wantedCount);
23     }
24 
getActualCount()25     public int getActualCount() {
26         return actualCount;
27     }
28 
getPluralizedActualCount()29     public String getPluralizedActualCount() {
30         return Pluralizer.pluralize(actualCount);
31     }
32 }
33