RequestThread.postRequest( new DisplayCaseRequest( moving.toArray( new AdventureResult[ moving.size() ] ), destinationShelf ) );
KoLmafia.updateDisplay( "Display case updated." );
Not at this time. :/Is there a way to capture an outgoing request, in order to examine it? Otherwise, I don't see how you can test that with our tests...
The thing is... there isn't any nondeterministic I/O to separate.or refactor so you can decouple the nondeterministic I/O part from the result-parsing logic.
When I say non-deterministic I/O, I mean the running of the DisplayCaseRequest, since that isn't guaranteed to give you reproducible results. (for instance, if you lose internet connection in the middle, you could get an IOException.)The thing is... there isn't any nondeterministic I/O to separate.