Follow

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: github.com/keturn/TerasologyLa

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.

Sign in to participate in the conversation
Toot.Cat

The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!