Hello,
I've been given a bunch of messy code and a short time limit (no surprises there) to write some tests for it. I have written tests! They are good tests.
Unfortunately, instantiating some of the project's components causes Swing GUI elements to be constructed and set visible too. I don't want this to happen for obvious reasons, so I was wondering if there was a way to suppress the displaying of any Swing-based stuff before I instantiate these objects. Essentially, some kind of master visibility setting, that says "I don't care if anyone calls setVisible on a Swing component, don't show anything."
I don't think there is, and I don't think there's a solution other than modifying the project code. Just thought I'd ask.