Wait for Platform.RunLater in a unit test

前端 未结 3 489
清酒与你
清酒与你 2021-01-13 06:02

I have a presentation class storing an XYChart.Series object and updating it by observing the model. The Series updating is done by using Platform.runLater(...)

I wa

3条回答
  •  生来不讨喜
    2021-01-13 06:34

    You could use a CountDownLatch which you create before the runLater and count down at the end of the Runnable

提交回复
热议问题