From c49683bef626d9c1de9d06e5f11039e6d4df55c3 Mon Sep 17 00:00:00 2001 From: Mateusz Warowny Date: Wed, 18 Oct 2023 14:02:01 +0200 Subject: [PATCH] JAL-1601 Rename task class to SecStructPredMsaTask --- src/jalview/ws2/actions/secstructpred/SecStructPredAction.java | 4 ++-- .../{SecStructPredTask.java => SecStructPredMsaTask.java} | 6 +++--- .../jalview/ws2/actions/secstructpred/SecStructPredTaskTest.java | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) rename src/jalview/ws2/actions/secstructpred/{SecStructPredTask.java => SecStructPredMsaTask.java} (96%) diff --git a/src/jalview/ws2/actions/secstructpred/SecStructPredAction.java b/src/jalview/ws2/actions/secstructpred/SecStructPredAction.java index a74965e..f625f79 100644 --- a/src/jalview/ws2/actions/secstructpred/SecStructPredAction.java +++ b/src/jalview/ws2/actions/secstructpred/SecStructPredAction.java @@ -44,10 +44,10 @@ public class SecStructPredAction extends BaseAction client = builder.client; } - public SecStructPredTask createTask(AlignViewportI viewport, + public SecStructPredMsaTask createTask(AlignViewportI viewport, List args, Credentials credentials) { - return new SecStructPredTask(client, args, credentials, viewport); + return new SecStructPredMsaTask(client, args, credentials, viewport); } @Override diff --git a/src/jalview/ws2/actions/secstructpred/SecStructPredTask.java b/src/jalview/ws2/actions/secstructpred/SecStructPredMsaTask.java similarity index 96% rename from src/jalview/ws2/actions/secstructpred/SecStructPredTask.java rename to src/jalview/ws2/actions/secstructpred/SecStructPredMsaTask.java index fb904a8..5067ff7 100644 --- a/src/jalview/ws2/actions/secstructpred/SecStructPredTask.java +++ b/src/jalview/ws2/actions/secstructpred/SecStructPredMsaTask.java @@ -28,8 +28,8 @@ import jalview.ws2.api.Credentials; import jalview.ws2.api.JobStatus; import jalview.ws2.client.api.SecStructPredWebServiceClientI; -public class SecStructPredTask - extends BaseTask +public class SecStructPredMsaTask + extends BaseTask { private final SecStructPredWebServiceClientI client; @@ -39,7 +39,7 @@ public class SecStructPredTask private final char gapChar; - SecStructPredTask(SecStructPredWebServiceClientI client, + SecStructPredMsaTask(SecStructPredWebServiceClientI client, List args, Credentials credentials, AlignViewportI viewport) { diff --git a/test/jalview/ws2/actions/secstructpred/SecStructPredTaskTest.java b/test/jalview/ws2/actions/secstructpred/SecStructPredTaskTest.java index f46fae2..3a79cd4 100644 --- a/test/jalview/ws2/actions/secstructpred/SecStructPredTaskTest.java +++ b/test/jalview/ws2/actions/secstructpred/SecStructPredTaskTest.java @@ -107,7 +107,7 @@ public class SecStructPredTaskTest public void testPrepareJobs_checkInputSequences(AlignViewport viewport, List expectedInput) throws Exception { - var task = new SecStructPredTask(mockClient, List.of(), Credentials.empty(), + var task = new SecStructPredMsaTask(mockClient, List.of(), Credentials.empty(), viewport); var jobs = task.prepareJobs(); List> seqMatchers = new ArrayList<>( -- 1.7.10.2