git://source.jalview.org
/
jalview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
JAL-3444 missed commit of removal of object creation test.
[jalview.git]
/
test
/
jalview
/
ws
/
SequenceFetcherTest.java
diff --git
a/test/jalview/ws/SequenceFetcherTest.java
b/test/jalview/ws/SequenceFetcherTest.java
index
0b501ee
..
8e18cc0
100644
(file)
--- a/
test/jalview/ws/SequenceFetcherTest.java
+++ b/
test/jalview/ws/SequenceFetcherTest.java
@@
-49,6
+49,7
@@
public class SequenceFetcherTest
* simple run method to test dbsources.
*
* @param argv
* simple run method to test dbsources.
*
* @param argv
+ * @j2sIgnore
*/
public static void main(String[] argv)
{
*/
public static void main(String[] argv)
{
@@
-69,14
+70,14
@@
public class SequenceFetcherTest
}
if (argv != null && argv.length > 0)
{
}
if (argv != null && argv.length > 0)
{
- List<DbSourceProxy> sps = new SequenceFetcher()
+ List<DbSourceProxy> sps = SequenceFetcher.getInstance()
.getSourceProxy(argv[0]);
if (sps != null)
{
for (DbSourceProxy sp : sps)
{
.getSourceProxy(argv[0]);
if (sps != null)
{
for (DbSourceProxy sp : sps)
{
- AlignmentI al = null;
+ // AlignmentI al = null;
try
{
testRetrieval(argv[0], sp,
try
{
testRetrieval(argv[0], sp,
@@
-95,12
+96,12
@@
public class SequenceFetcherTest
{
System.err.println("Can't resolve " + argv[0]
+ " as a database name. Allowed values are :\n"
{
System.err.println("Can't resolve " + argv[0]
+ " as a database name. Allowed values are :\n"
- + new SequenceFetcher().getSupportedDb());
+ + SequenceFetcher.getInstance().getSupportedDb());
}
System.out.println(usage);
return;
}
}
System.out.println(usage);
return;
}
- ASequenceFetcher sfetcher = new SequenceFetcher();
+ ASequenceFetcher sfetcher = SequenceFetcher.getInstance();
String[] dbSources = sfetcher.getSupportedDb();
for (int dbsource = 0; dbsource < dbSources.length; dbsource++)
{
String[] dbSources = sfetcher.getSupportedDb();
for (int dbsource = 0; dbsource < dbSources.length; dbsource++)
{