RFR: 8274771: Map, FlatMap and OrElse fluent bindings for ObservableValue [v8]
John Hendrikx
jhendrikx at openjdk.java.net
Thu Mar 10 05:44:36 UTC 2022
On Tue, 8 Mar 2022 20:57:53 GMT, Nir Lisker <nlisker at openjdk.org> wrote:
>> John Hendrikx has updated the pull request incrementally with one additional commit since the last revision:
>>
>> Fix wrong test values
>
> modules/javafx.base/src/test/java/test/javafx/beans/value/ObservableValueFluentBindingsTest.java line 379:
>
>> 377: @Test
>> 378: void shouldReturnPropertyValuesWithOperationApplied() {
>> 379: assertEquals("UNKNOWN", observableValue.getValue()); // initially it is not left or right, so unknown
>
> Maybe these comments should be in the `String message` argument? I don't mind either way.
I've left these as is, I don't find the messages in asserts particularly useful unless they describe which parameters are used when the assert is used in a parameterized test or a loop. I added the comments more to help readers of the code what the thought process was behind the test, not so much to describe the error.
-------------
PR: https://git.openjdk.java.net/jfx/pull/675
More information about the openjfx-dev
mailing list