blockygameplatform Teresology broke a 14-month dry spell with a new release recently, inspiring me to give it another spin. So I find myself writing some Java recently.
I came up with some unit-test code I'd love to have suggestions on.
The app uses JavaFX for the UI, so there are some observable beans, and I'm using ListenableFutures (from Guava) because that's the concurrency abstraction I'm most familiar with, and javafx also has an event system. Some other variants on `Future` jumbled in there too.
This code is at a point where I think it works and is reasonably readable: https://github.com/keturn/TerasologyLauncher/blob/6454f652ce2da1b7e98054c1ba9306d9f5697080/src/test/java/org/terasology/launcher/game/TestRunGameTask.java#L210
but the mishmash of different concurrency abstractions makes me want to know from more fluent java-testers if there's a more idiomatic way to write it.
The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!