import static org.testng.AssertJUnit.assertTrue;\r
import static org.testng.AssertJUnit.fail;\r
\r
+import java.io.File;\r
import java.io.FileInputStream;\r
import java.io.FileNotFoundException;\r
import java.io.FileOutputStream;\r
}\r
\r
@Test\r
+ public void testReadIUPredForShortAndLongDisorder() {\r
+ try {\r
+ Map<String, Score> scores = SequenceUtil.readIUPred(new File(\r
+ AllTestSuit.TEST_DATA_PATH, "output.long"),\r
+ IUPredResult.Long);\r
+ ScoreManager man = ScoreManager.newInstanceSingleScore(scores);\r
+ man.writeOut(new PrintWriter(System.out, true));\r
+ } catch (IOException e) {\r
+ e.printStackTrace();\r
+ fail(e.getLocalizedMessage());\r
+ } catch (UnknownFileFormatException e) {\r
+ e.printStackTrace();\r
+ fail(e.getLocalizedMessage());\r
+ }\r
+ }\r
+\r
+ @Test\r
+ public void testReadIUPredForGlobDomain() {\r
+ try {\r
+ Map<String, Score> scores = SequenceUtil.readIUPred(new File(\r
+ AllTestSuit.TEST_DATA_PATH, "output.glob"),\r
+ IUPredResult.Glob);\r
+ ScoreManager man = ScoreManager.newInstanceSingleScore(scores);\r
+ man.writeOut(new PrintWriter(System.out, true));\r
+ } catch (IOException e) {\r
+ e.printStackTrace();\r
+ fail(e.getLocalizedMessage());\r
+ } catch (UnknownFileFormatException e) {\r
+ e.printStackTrace();\r
+ fail(e.getLocalizedMessage());\r
+ }\r
+ }\r
+\r
+ @Test\r
public void testReadAAConResults() {\r
try {\r
InputStream inStream = new FileInputStream(\r