File tree Expand file tree Collapse file tree 2 files changed +17
-24
lines changed
src/test/java/org/scijava/io Expand file tree Collapse file tree 2 files changed +17
-24
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 44import org .scijava .Context ;
55import org .scijava .io .location .FileLocation ;
66import org .scijava .plugin .PluginInfo ;
7+ import org .scijava .text .AbstractTextFormat ;
78import org .scijava .text .TextFormat ;
8- import org .xml .sax .SAXException ;
99
10- import javax .xml .parsers .ParserConfigurationException ;
1110import java .io .IOException ;
11+ import java .util .Collections ;
12+ import java .util .List ;
1213
1314import static org .junit .Assert .assertEquals ;
1415import static org .junit .Assert .assertNotNull ;
@@ -35,4 +36,18 @@ public void testTextFile() throws IOException {
3536 assertNotNull (obj );
3637 assertEquals (content , obj .toString ());
3738 }
39+
40+
41+ public static class DummyTextFormat extends AbstractTextFormat {
42+
43+ @ Override
44+ public List <String > getExtensions () {
45+ return Collections .singletonList ("txt" );
46+ }
47+
48+ @ Override
49+ public String asHTML (String text ) {
50+ return text ;
51+ }
52+ }
3853}
You can’t perform that action at this time.
0 commit comments