import jalview.fts.api.FTSRestClientI;
import java.io.BufferedReader;
-import java.io.FileReader;
import java.io.IOException;
+import java.io.InputStream;
+import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Objects;
public void parseDataColumnsConfigFile()
{
String fileName = getColumnDataConfigFileName();
- try (BufferedReader br = new BufferedReader(new FileReader(fileName)))
+
+ InputStream in = getClass().getResourceAsStream(fileName);
+
+ try (BufferedReader br = new BufferedReader(new InputStreamReader(in)))
{
String line;
while ((line = br.readLine()) != null)
@Override
public String getColumnDataConfigFileName()
{
- return "examples/testdata/test_fts_data_columns.conf";
+ return "/fts/uniprot_data_columns.txt";
}
@Override
}
String actualResourseFile = ftsRestClient
- .getResourceFile("fts/uniprot_data_columns.conf");
+ .getResourceFile("/fts/uniprot_data_columns.txt");
Assert.assertNotNull(actualResourseFile);
Assert.assertTrue(actualResourseFile.length() > 31);
}