SeqAnnotationServiceCalcWorker aaconClient = new SeqAnnotationServiceCalcWorker(
aacon, af, null,
null);
- long current = System.currentTimeMillis(), limit = 5;
+ long current = System.currentTimeMillis(), limit = 15;
af.getViewport().getCalcManager().startWorker(aaconClient);
do
{
} while (af.getViewport().getCalcManager().isWorking());
AlignmentI orig_alig = af.getViewport().getAlignment();
boolean foundShenkin = false;
- for (AlignmentAnnotation aa : orig_alig
- .findAnnotation(aacon.getAlignAnalysisUI().getCalcId()))
+ Iterable<AlignmentAnnotation> _aa=orig_alig
+ .findAnnotation(aacon.getAlignAnalysisUI().getCalcId());
+ assertTrue("No annotation from service",
+ _aa != null && _aa.iterator().hasNext());
+
+ for (AlignmentAnnotation aa : _aa)
{
assertTrue("AACon annotation not marked as autocalculated!",
aa.autoCalculated);
import jalview.ws.api.ServiceWithParameters;
import jalview.ws.jws2.Jws2Discoverer;
import jalview.ws.jws2.SeqAnnotationServiceCalcWorker;
+import jalview.ws.slivkaws.SlivkaWSDiscoverer;
import java.util.ArrayList;
import java.util.List;
// don't get services until discoverer has finished
Thread.sleep(100);
}
-
+ SlivkaWSDiscoverer disc2 = SlivkaWSDiscoverer.getInstance();
+ disc2.run();
iupreds = new ArrayList<>();
- for (ServiceWithParameters svc : disc.getServices())
+ for (ServiceWithParameters svc : disc2.getServices())
{
- if (svc.getNameURI().toLowerCase().contains("iupredws"))
+ if (svc.getNameURI().toLowerCase().contains("iupred"))
{
iupreds.add(svc);
}