mirror of
https://github.com/bancika/diy-layout-creator
synced 2026-11-10 17:22:09 +10:00
Fix unit tests
This commit is contained in:
@@ -54,7 +54,7 @@ public class CapacitorDatasheetService {
|
|||||||
public CapacitorDatasheet lookup(Class<?> clazz, String key, Voltage voltage, Capacitance value,
|
public CapacitorDatasheet lookup(Class<?> clazz, String key, Voltage voltage, Capacitance value,
|
||||||
Boolean polarized) {
|
Boolean polarized) {
|
||||||
|
|
||||||
String lookupKey = key + "|" + format.format(voltage.getNormalizedValue()) + " VDC"
|
String lookupKey = key + "|" + format.format(voltage.getNormalizedValue()) + " V"
|
||||||
+ (Optional.ofNullable(polarized).map(p -> p ? "" : " NP").orElse(""));
|
+ (Optional.ofNullable(polarized).map(p -> p ? "" : " NP").orElse(""));
|
||||||
|
|
||||||
String cacheKey = clazz.getName() + lookupKey + "|" + format.format(value.getNormalizedValue());
|
String cacheKey = clazz.getName() + lookupKey + "|" + format.format(value.getNormalizedValue());
|
||||||
|
|||||||
Reference in New Issue
Block a user