};
}
- @Test(dataProvider = "multipleSequencesUnalignedAndAligned")
+ @Test(
+ groups = { "Functional" },
+ dataProvider = "multipleSequencesUnalignedAndAligned")
public void submitSequences_verifySequenceNamesUniquified(
Alignment unaligned, Alignment aligned)
throws IOException
hasProperty("name", is("Sequence2"))));
}
- @Test(dataProvider = "multipleSequencesUnalignedAndAligned")
+ @Test(
+ groups = { "Functional" },
+ dataProvider = "multipleSequencesUnalignedAndAligned")
public void submitSequences_submitGapsOff_verifySequencesSubmittedWithoutGaps(Alignment unaligned, Alignment aligned)
throws IOException
{
matchesSequence("ASTVLOPDTMMQEL")));
}
- @Test(dataProvider = "multipleSequencesUnalignedAndAligned")
+ @Test(
+ groups = { "Functional" },
+ dataProvider = "multipleSequencesUnalignedAndAligned")
public void submitSequences_submitGapsOn_verifySequencesSubmittedWithGaps(
Alignment unaligned, Alignment aligned)
throws IOException
matchesSequence("AS--TVL--OPDTMMQEL------")));
}
- @Test(dataProvider = "multipleSequencesUnalignedAndAligned")
+ @Test(
+ groups = { "Functional" },
+ dataProvider = "multipleSequencesUnalignedAndAligned")
public void retrieveResult_verifySequencesAligned(
Alignment unaligned, Alignment aligned)
throws IOException
};
}
- @Test
+ @Test(groups = { "Functional" })
public void allJobsStarted_taskStartedCalled()
throws IOException
{
verify(mockListener).taskStarted(any(), anyList());
}
- @Test
+ @Test(groups = { "Functional" })
public void allJobsStarted_taskStatusChangedCalledWithReadyThenSubmitted()
throws IOException
{
inOrder.verify(mockListener).taskStatusChanged(any(), eq(JobStatus.SUBMITTED));
}
- @Test(dataProvider = "jobStatuses")
+ @Test(groups = { "Functional" }, dataProvider = "jobStatuses")
public void jobStatusChanged_taskStatusChangedCalledWithJobStatus(JobStatus status)
throws IOException
{
verify(mockListener).taskStatusChanged(any(), eq(status));
}
- @Test(dataProvider = "jobStatuses")
+ @Test(groups = { "Functional" }, dataProvider = "jobStatuses")
public void jobStatusChanged_subJobStatusChangedCalledWithJobStatus(JobStatus status)
throws IOException
{
import jalview.bin.Cache;
import jalview.bin.Console;
import jalview.ws.params.ValueConstrainI.ValueType;
+import jalview.ws.params.simple.BooleanOption;
import jalview.ws.params.simple.DoubleParameter;
import jalview.ws.params.simple.IntegerParameter;
import jalview.ws.params.simple.StringParameter;
clientMock = mock(SlivkaClient.class);
}
- @Test
+ @Test(groups = { "Functional" })
public void getStatusForUrl_servicesReturned_statusIsOK() throws Exception
{
when(clientMock.getServices())
is(WebServiceDiscovererI.STATUS_OK));
}
- @Test
+ @Test(groups = { "Functional" })
public void getStatusForUrl_noServicesReturned_statusIsNoServices()
throws Exception
{
is(WebServiceDiscovererI.STATUS_NO_SERVICES));
}
- @Test
+ @Test(groups = { "Functional" })
public void getStatusForUrl_exceptionThrown_statusIsInvalid()
throws Exception
{
is(WebServiceDiscovererI.STATUS_INVALID));
}
- @Test
+ @Test(groups = { "Functional" })
public void testGetUrls_noPropEntry_defaultUrlReturned()
throws MalformedURLException
{
List.of(new URL("http://example.org")) } };
}
- @Test(dataProvider = "urlPropertyValues")
+ @Test(groups = { "Functional" }, dataProvider = "urlPropertyValues")
public void testGetUrls_urlsProperlyParsed(String propValue,
List<URL> expected)
{
assertThat(discoverer.getUrls(), equalTo(expected));
}
- @Test
+ @Test(groups = { "Functional" })
public void testSetUrls_emptyList_propertyReset()
{
Cache.setProperty(URLS_PROPERTY_NAME, "http://www.example.org");
assertThat(Cache.getProperty(URLS_PROPERTY_NAME), is(nullValue()));
}
- @Test
+ @Test(groups = { "Functional" })
public void testSetUrls_null_propertyReset()
{
Cache.setProperty(URLS_PROPERTY_NAME, "http://www.example.org");
"https://www.compbio.dundee.ac.uk/slivka/,http://example.org" }, };
}
- @Test(dataProvider = "urlsList")
+ @Test(groups = { "Functional" }, dataProvider = "urlsList")
public void testSetUrls_urlsPropertySet(List<URL> urls, String expected)
throws MalformedURLException
{
assertThat(Cache.getProperty(URLS_PROPERTY_NAME), equalTo(expected));
}
- @Test
+ @Test(groups = { "Functional" })
public void testFetchServices_oneService_basicDataMatches()
throws IOException
{
}
- @Test(dataProvider = "validMultipleSequenceAlignmentClassifiers")
+ @Test(
+ groups = { "Functional" },
+ dataProvider = "validMultipleSequenceAlignmentClassifiers")
public void testFetchServices_multipleSequenceAlignmentClassifier_serviceTypeIsMSA(
String classifier) throws IOException
{
List.of(), List.of(), null) };
}
- @Test(dataProvider = "multipleSequenceAlignmentService")
+ @Test(
+ groups = { "Functional" },
+ dataProvider = "multipleSequenceAlignmentService")
public void testFetchServices_multipleSequenceAlignmentService_actionTypeIsAlignment(
SlivkaService service) throws IOException
{
typeCompatibleWith(AlignmentAction.class));
}
- @Test(dataProvider = "multipleSequenceAlignmentService")
+ @Test(
+ groups = { "Functional" },
+ dataProvider = "multipleSequenceAlignmentService")
public void testFetchServices_multipleSequenceAlignmentService_serviceIsNonInteractive(
SlivkaService service) throws IOException
{
List.of(), List.of(), null), };
}
- @Test(dataProvider = "clustalFamilyService")
+ @Test(groups = { "Functional" }, dataProvider = "clustalFamilyService")
public void testFetchService_clustalFamilyService_containsTwoActions(
SlivkaService service) throws IOException
{
return services.iterator();
}
- @Test(dataProvider = "RNASecondaryStructurePredictionService")
+ @Test(
+ groups = { "Functional" },
+ dataProvider = "RNASecondaryStructurePredictionService")
public void testFetchServices_RNASecStrPredClassifier_serviceTypeIsRNASecStrPred(
SlivkaService service) throws IOException
{
return services.iterator();
}
- @Test(dataProvider = "validConservationAnalysisClassifiers")
+ @Test(
+ groups = { "Functional" },
+ dataProvider = "validConservationAnalysisClassifiers")
public void testFetchServices_conservationAnalysisClassifier_serviceTypeIsConservation(
String classifier) throws IOException
{
"Operation :: Analysis :: Sequence analysis :: Protein sequence analysis", };
}
- @Test(dataProvider = "validProteinSequenceAnalysisClassifiers")
+ @Test(
+ groups = { "Functional" },
+ dataProvider = "validProteinSequenceAnalysisClassifiers")
public void testFetchServices_proteinSequenceAnalysisClassifier_serviceTypeIsProtSeqAnalysis(
String classifier) throws IOException
{
@Test(
enabled = false, // sec. str. pred. not implemented for slivka
+ groups = { "Functional" },
dataProvider = "validProteinSecondaryStructurePredictionClassifiers")
public void testFetchServices_proteinSecStrPredClassifier_serviceTypeIsProtSecStrPred(
String classifier) throws IOException
List.of(), null) };
}
- @Test(dataProvider = "unrecognisedService")
+ @Test(groups = { "Functional" }, dataProvider = "unrecognisedService")
public void testFetchServices_unrecognisedService_noServiceDiscovered(
SlivkaService service) throws IOException
{
{
new Parameter.FlagParameter("param", "Parameter", "Description",
true, false, null, Map.of()),
- StringParameter.class
+ BooleanOption.class
},
{
new Parameter.ChoiceParameter("param", "Parameter", "Description",
};
}
- @Test(dataProvider = "serviceParameterAndMappedClass")
+ @Test(
+ groups = { "Functional" },
+ dataProvider = "serviceParameterAndMappedClass")
public void testServiceParameter_slivkaParameterMappedToJalviewParameter(
Parameter slivkaParameter, Class<?> expectedClass)
throws IOException
};
}
- @Test(dataProvider = "serviceParametersAndInfoMatcher")
+ @Test(
+ groups = { "Functional" },
+ dataProvider = "serviceParametersAndPropertyMatcher")
public void testServiceParameters_testBasicParameterProperties(
Parameter parameter, Matcher<Object> matcher) throws IOException
{
};
}
- @Test(dataProvider = "integerParametersAndPropertyMatcher")
+ @Test(
+ groups = { "Functional" },
+ dataProvider = "integerParametersAndPropertyMatcher")
public void testServiceParameters_testIntegerProperties(
Parameter parameter, Matcher<Object> matcher) throws IOException
{