On Fri, 3 Sep 2021 21:17:11 GMT, Michael Strauß <mstra...@openjdk.org> wrote:

> > Can we get a unit test for this case?
> 
> This is a test that fails without the fix, and passes with the fix. However, 
> there are no assertions, which is... strange. Once 
> [JDK-8273336](https://bugs.openjdk.java.net/browse/JDK-8273336) is fixed, the 
> test could validate the selection state.
>

That is still fine. I also don't like to write tests without at least one 
assertion, but there is not other way in JUnit4. I ended up writing a comment 
above the problematic call, e.g.: `// Should not throw an NPE.`

-------------

PR: https://git.openjdk.java.net/jfx/pull/617

Reply via email to