Minor modification of Long to long

This commit is contained in:
Deepanshu Rastogi 2017-09-28 15:04:32 +02:00
parent 01b85b9721
commit 4e236f6da8
2 changed files with 2 additions and 4 deletions

View File

@ -61,7 +61,7 @@ public final class CallsCount {
* @param tenantName name of the tenant.
* @return the count of the tenant.
*/
public static Long getCount(String tenantName) {
public static long getCount(String tenantName) {
return tenantCallsCount.get(tenantName).get();
}

View File

@ -39,12 +39,10 @@ public class B2BServiceTest {
Throttler timer = new ThrottleTimerImpl(100);
B2BService service = new B2BService(timer);
long counter = 0;
for (int i = 0; i < 5; i++) {
service.dummyCustomerApi(tenant);
counter = CallsCount.getCount(tenant.getName());
}
long counter = CallsCount.getCount(tenant.getName());
Assert.assertTrue("Counter limit must be reached", counter == 2);
}
}