File tree Expand file tree Collapse file tree 2 files changed +26
-56
lines changed
src/test/java/org/scijava/table Expand file tree Collapse file tree 2 files changed +26
-56
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 3939import org .junit .Before ;
4040import org .junit .Test ;
4141import org .scijava .Context ;
42+ import org .scijava .io .AbstractIOPlugin ;
4243import org .scijava .io .IOPlugin ;
4344import org .scijava .plugin .PluginInfo ;
4445import org .scijava .plugin .PluginService ;
@@ -80,4 +81,29 @@ public void testTableIOService() {
8081 fail (exc .toString ());
8182 }
8283 }
84+
85+ @ SuppressWarnings ("rawtypes" )
86+ public static class FakeTableIOPlugin extends AbstractIOPlugin <Table > {
87+
88+ @ Override
89+ public Class <Table > getDataType () {
90+ return Table .class ;
91+ }
92+
93+ @ Override
94+ public boolean supportsOpen (String loc ) {
95+ return loc .endsWith ("csv" );
96+ }
97+
98+ @ Override
99+ public boolean supportsSave (String loc ) {
100+ return loc .endsWith ("csv" );
101+ }
102+
103+ @ Override
104+ public Table open (String loc ) {
105+ return new DefaultGenericTable ();
106+ }
107+ }
108+
83109}
You can’t perform that action at this time.
0 commit comments