test: CurrencyServiceTest completed?

This commit is contained in:
Piotr Dec 2024-05-24 16:25:19 +02:00
parent 6d8a2093b9
commit c87bcc8b54
Signed by: stawros
GPG key ID: F89F27AD8F881A91
6 changed files with 128 additions and 9 deletions

View file

@ -31,11 +31,11 @@ public class NbpService {
private final ConcurrentMap<String, RatesCache> cache = new ConcurrentHashMap<>(1);
public double getSellRate(String currency) {
return getCurrency(currency).sell();
return getCurrency(currency.toUpperCase()).sell();
}
public double getBuyRate(String currency) {
return getCurrency(currency).buy();
return getCurrency(currency.toUpperCase()).buy();
}
private synchronized RatesCache getCurrency(String currency) {