X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=test%2Fjalview%2Fext%2Fensembl%2FEnsemblSeqProxyAdapter.java;h=be7bdf21c10838c2e892529d462e9f4e48685bfc;hb=181cd6607ecd631aa5972582ff1d99c5bea75b23;hp=7077eac618256c28dd5fb7ce758b80b72caf483c;hpb=e7a5ac489e89d1c97ba55c817015945ed208f495;p=jalview.git
diff --git a/test/jalview/ext/ensembl/EnsemblSeqProxyAdapter.java b/test/jalview/ext/ensembl/EnsemblSeqProxyAdapter.java
index 7077eac..be7bdf2 100644
--- a/test/jalview/ext/ensembl/EnsemblSeqProxyAdapter.java
+++ b/test/jalview/ext/ensembl/EnsemblSeqProxyAdapter.java
@@ -1,6 +1,30 @@
+/*
+ * Jalview - A Sequence Alignment Editor and Viewer ($$Version-Rel$$)
+ * Copyright (C) $$Year-Rel$$ The Jalview Authors
+ *
+ * This file is part of Jalview.
+ *
+ * Jalview is free software: you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License
+ * as published by the Free Software Foundation, either version 3
+ * of the License, or (at your option) any later version.
+ *
+ * Jalview is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty
+ * of MERCHANTABILITY or FITNESS FOR A PARTICULAR
+ * PURPOSE. See the GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with Jalview. If not, see .
+ * The Jalview Authors are detailed in the 'AUTHORS' file.
+ */
package jalview.ext.ensembl;
import jalview.datamodel.SequenceFeature;
+import jalview.datamodel.SequenceI;
+
+import java.util.ArrayList;
+import java.util.List;
/**
* A convenience class to simplify writing unit tests (pending Mockito or
@@ -8,6 +32,23 @@ import jalview.datamodel.SequenceFeature;
*/
public class EnsemblSeqProxyAdapter extends EnsemblSeqProxy
{
+ /**
+ * Default constructor (to use rest.ensembl.org)
+ */
+ public EnsemblSeqProxyAdapter()
+ {
+ super();
+ }
+
+ /**
+ * Constructor given the target domain to fetch data from
+ *
+ * @param d
+ */
+ public EnsemblSeqProxyAdapter(String d)
+ {
+ super(d);
+ }
@Override
public String getDbName()
@@ -28,9 +69,10 @@ public class EnsemblSeqProxyAdapter extends EnsemblSeqProxy
}
@Override
- protected boolean identifiesSequence(SequenceFeature sf, String accId)
+ protected List getIdentifyingFeatures(SequenceI seq,
+ String accId)
{
- return false;
+ return new ArrayList<>();
}
}