}
}
+
+ @Test(dataProvider = "ens_seqs")
+ public void testRegexForProxy(EnsemblSeqType type, String sq,
+ String fastasq) throws Exception
+ {
+ EnsemblSeqProxy esq = new EnsemblProtein();
+ Assert.assertTrue(esq.isValidReference(sq),
+ "Expected reference string " + sq + " to be valid for regex "
+ + esq.getAccessionValidator().toString());
+
+ Assert.assertEquals(sq, DBRefUtils.processQueryToAccessionFor(esq, sq),
+ "Regex for " + esq.getClass().toString() + " not correct.");
+ }
+ // @Test(dataProvider = "ens_seqs", suiteName = "live")
+ // public void testGetOneSeqs(EnsemblSeqType type, String sq, String fastasq)
+ // throws Exception
+ // {
+ //
+ // {
+ // Assert.assertTrue(rseq[0].getDBRef() != null
+ // && rseq[0].getDBRef().length > 0,
+ // "No database references added to sequence by fetcher.");
+ // Assert.assertNotNull(DBRefUtils.searchRefs(rseq[0].getDBRef(),
+ // new DBRefEntry("ENSEMBL", null, sq)),
+ // "Could't find database references added to sequence by fetcher.");
+ //
+ // }
}
\ No newline at end of file