import org.ngbw.restdatatypes.ErrorData;
import org.ngbw.restdatatypes.ParamError;
-public class CipresJob
+public class CipresQueryBuilder
{
private final static CiApplication app = CiApplication.getInstance();
private static CiClient userClient;
- public CipresJob()
+ public CipresQueryBuilder()
{
}
- public CipresJob(String alignmentFilePath)
+ public CipresQueryBuilder(String alignmentFilePath)
{
this();
inputParams.put("infile_", alignmentFilePath);
}
- public CipresJob(String alignmentFilePath, String toolName)
+ public CipresQueryBuilder(String alignmentFilePath, String toolName)
{
this(alignmentFilePath);
tool = toolName;
import org.testng.annotations.BeforeClass;
import org.testng.annotations.Test;
-public class CipresJobTest
+public class CipresQueryBuilderTest
{
@BeforeClass(
alwaysRun = true
)
public void testSettingJobParameters()
{
- CipresJob testJob = new CipresJob("examples/plantfdx.fa");
+ CipresQueryBuilder testJob = new CipresQueryBuilder("examples/plantfdx.fa");
testJob.addToolParameters("runtime_", Arrays.asList("0.3"));
testJob.addInputParameter("test", "hoi");
testJob.addMetadata("hennepin", "crawler");
)
public void testValidatingParameters()
{
- CipresJob testJob = new CipresJob("examples/plantfdx.fa", "CLUSTALW");
+ CipresQueryBuilder testJob = new CipresQueryBuilder("examples/plantfdx.fa", "CLUSTALW");
testJob.addToolParameters("runtime_", Arrays.asList("0.2"));
testJob.addMetadata("clientJobId", "101");
testJob.validateJobParams();
)
public void testJobSubmission()
{
- CipresJob testJob = new CipresJob("examples/plantfdx.fa", "CLUSTALW");
+ CipresQueryBuilder testJob = new CipresQueryBuilder("examples/plantfdx.fa", "CLUSTALW");
testJob.addToolParameters("runtime_", Arrays.asList("0.2"));
testJob.addMetadata("clientJobId", "102");
testJob.addMetadata("statusEmail", "false");