@Test(groups = { "Functional" })
public void testStandardProtDbs()
{
- List<String> defdb = new ArrayList<String>();
+ List<String> defdb = new ArrayList<>();
defdb.addAll(Arrays.asList(DBRefSource.PROTEINDBS));
defdb.add(DBRefSource.PDB);
- List<DbSourceProxy> srces = new ArrayList<DbSourceProxy>();
- SequenceFetcher sfetcher = new SequenceFetcher();
+ List<DbSourceProxy> srces = new ArrayList<>();
+ SequenceFetcher sfetcher = SequenceFetcher.getInstance();
boolean pdbFound = false;
for (String ddb : defdb)
public void testEmblUniprotProductRecovery() throws Exception
{
String retrievalId = "V00488";
- DbSourceProxy embl = new SequenceFetcher().getSourceProxy(
+ DbSourceProxy embl = SequenceFetcher.getInstance().getSourceProxy(
DBRefSource.EMBL).get(0);
assertNotNull("Couldn't find the EMBL retrieval client", embl);
verifyProteinNucleotideXref(retrievalId, embl);
public void testEmblCDSUniprotProductRecovery() throws Exception
{
String retrievalId = "AAH29712";
- DbSourceProxy embl = new SequenceFetcher().getSourceProxy(
+ DbSourceProxy embl = SequenceFetcher.getInstance()
+ .getSourceProxy(
DBRefSource.EMBLCDS).get(0);
assertNotNull("Couldn't find the EMBL retrieval client", embl);
verifyProteinNucleotideXref(retrievalId, embl);