test: CurrencyServiceTest completed?
This commit is contained in:
parent
6d8a2093b9
commit
c87bcc8b54
6 changed files with 128 additions and 9 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue