BAEL-6874 update test code for article (#15164)
* BAEL-6819 convert from int to Long in Java * BAEL-6819 update package name * BAEL-6874 test code for article * BAEL-6874 rename test class * BAEL-6874 update test code for article * BAEL-6874 update test code for article
This commit is contained in:
parent
0b0db24ebb
commit
63679af8ca
|
@ -78,7 +78,7 @@ class GenericNumbersComparatorUnitTest {
|
||||||
assertEquals(true, isEqual.test(5, 5.0));
|
assertEquals(true, isEqual.test(5, 5.0));
|
||||||
}
|
}
|
||||||
|
|
||||||
private boolean someCondition = true;
|
private boolean someCondition;
|
||||||
Function<Number, ?> dynamicFunction = someCondition ? Number::doubleValue : Number::intValue;
|
Function<Number, ?> dynamicFunction = someCondition ? Number::doubleValue : Number::intValue;
|
||||||
Comparator<Number> dynamicComparator = (num1, num2) -> ((Comparable) dynamicFunction.apply(num1)).compareTo(dynamicFunction.apply(num2));
|
Comparator<Number> dynamicComparator = (num1, num2) -> ((Comparable) dynamicFunction.apply(num1)).compareTo(dynamicFunction.apply(num2));
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue