Skip to content

Commit 5ef433d

Browse files
committed
Move test class into TableIOServiceTest
1 parent c6b82b5 commit 5ef433d

File tree

2 files changed

+26
-56
lines changed

2 files changed

+26
-56
lines changed

src/test/java/org/scijava/table/FakeTableIOPlugin.java

Lines changed: 0 additions & 56 deletions
This file was deleted.

src/test/java/org/scijava/table/TableIOServiceTest.java

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@
3939
import org.junit.Before;
4040
import org.junit.Test;
4141
import org.scijava.Context;
42+
import org.scijava.io.AbstractIOPlugin;
4243
import org.scijava.io.IOPlugin;
4344
import org.scijava.plugin.PluginInfo;
4445
import 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
}

0 commit comments

Comments
 (0)