imagej / ij1-patcher

Extension points for ImageJ via runtime patching to support (limited) headless operation and ImageJ2's legacy layer
BSD 2-Clause "Simplified" License
5 stars 6 forks source link

Make HeadlessGenericDialog more robust #13

Closed dscho closed 10 years ago

dscho commented 10 years ago

We already have a unit test that makes sure that we override all methods in the HeadlessGenericDialog, in particular those that might have been added to the GenericDialog class in new ImageJ 1.x versions.

However, this test can only catch things after the fact, after a new ImageJ version was released (and picked up in Mavenized form by ImageJA).

Let's be more proactive and add code that inserts dummy methods in the HeadlessGenericDialog for every unhandled method. This might need to be switched off for the unit test in question, but it should make the headless mode a lot more robust.