We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5e7cdbd commit f1e90a4Copy full SHA for f1e90a4
src/test/java/org/scijava/module/event/ModuleErroredEventTest.java
@@ -68,13 +68,14 @@ public void testModuleErroredEvent() {
68
final boolean[] caughtException = { false };
69
70
// Add a new EventHandler to change our state
71
- es.subscribe(new Object() {
+ final Object interestedParty = new Object() {
72
73
@EventHandler
74
void onEvent(final ModuleErroredEvent e) {
75
caughtException[0] = true;
76
}
77
- });
+ };
78
+ es.subscribe(interestedParty);
79
80
// Run the module, ensure we get the exception
81
assertThrows(Exception.class, //
0 commit comments