Skip to content

Commit 2f4955b

Browse files
committed
CheckSezpozTest: fix failing test
The testBasic method synthesizes a class which implements Service directly. The creation of the RichPlugin interface brought to light the fact that the Service interface did not previously extend HasPluginInfo, despite the fact that AbstractService did so.
1 parent 9024f70 commit 2f4955b

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎src/test/java/org/scijava/util/CheckSezpozTest.java‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ public void testBasic() throws Exception {
104104
writer.append("import org.scijava.Context;\n"
105105
+ "import org.scijava.Prioritized;\n"
106106
+ "import org.scijava.plugin.Plugin;\n"
107+
+ "import org.scijava.plugin.PluginInfo;\n"
107108
+ "import org.scijava.service.Service;\n"
108109
+ "\n"
109110
+ "@Plugin(type = Service.class)\n"
@@ -115,6 +116,8 @@ public void testBasic() throws Exception {
115116
+ "\tpublic int compareTo(final Prioritized other) { return 0; }\n"
116117
+ "\tpublic Context getContext() { return null; }\n"
117118
+ "\tpublic void setContext(final Context context) { }\n"
119+
+ "\tpublic PluginInfo<?> getInfo() { return null; }\n"
120+
+ "\tpublic void setInfo(PluginInfo<?> info) { }\n"
118121
+ "\tpublic void dispose() { }\n"
119122
+ "}\n");
120123
writer.close();

0 commit comments

Comments
 (0)