Package ubic.gemma.rest
Class AnnotationsWebServiceTest
java.lang.Object
org.glassfish.jersey.test.JerseyTest
ubic.gemma.rest.util.BaseJerseyTest
ubic.gemma.rest.AnnotationsWebServiceTest
- All Implemented Interfaces:
org.springframework.beans.factory.Aware,org.springframework.context.ApplicationContextAware
@ContextConfiguration
@TestExecutionListeners(WithSecurityContextTestExecutionListener.class)
public class AnnotationsWebServiceTest
extends BaseJerseyTest
- Author:
- poirigui
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidvoidMethods inherited from class ubic.gemma.rest.util.BaseJerseyTest
configure, configureClient, getTestContainerFactory, setApplicationContext, setUp, tearDownMethods inherited from class org.glassfish.jersey.test.JerseyTest
client, close, closeIfNotNull, configureDeployment, disable, enable, forceDisable, forceEnable, forceSet, getAsyncTimeoutMultiplier, getBaseUri, getClient, getLastLoggedRecord, getLoggedRecords, getPort, isEnabled, set, set, setClient, target, target
-
Constructor Details
-
AnnotationsWebServiceTest
public AnnotationsWebServiceTest()
-
-
Method Details
-
setUpMocks
public void setUpMocks() -
resetMocks
public void resetMocks() -
testSearchTaxonDatasets
- Throws:
SearchExceptionTimeoutException
-
testParents
- Throws:
TimeoutException
-
testParentsWhenTermIsNotFound
- Throws:
TimeoutException
-
testParentsWhenInferenceTimeout
- Throws:
TimeoutException
-
testChildren
- Throws:
TimeoutException
-
testParentsPopulatesUsageCount
- Throws:
TimeoutException
-
testChildrenPopulatesUsageCount
- Throws:
TimeoutException
-
testParentsReportsZeroWhenNoExperimentsMatch
- Throws:
TimeoutException
-
testParentsSkipsCountLookupWhenAllTermsLackUris
- Throws:
TimeoutException
-
testSearchAnnotationsPopulatesUsageCount
- Throws:
SearchExceptionTimeoutException
-
testGetAnnotationCategories
public void testGetAnnotationCategories() -
testGetAnnotationCategoriesEmpty
public void testGetAnnotationCategoriesEmpty() -
testGetAnnotationPredicates
public void testGetAnnotationPredicates() -
testGetAnnotationPredicatesEmpty
public void testGetAnnotationPredicatesEmpty() -
testGetAnnotationTerm
- Throws:
TimeoutException
-
testGetAnnotationTermReportsZeroWhenNoExperimentsMatch
- Throws:
TimeoutException
-
testGetAnnotationTermSkipsCountLookupWhenTermHasNoUri
- Throws:
TimeoutException
-
testGetAnnotationTermNotFound
- Throws:
TimeoutException
-
testGetAnnotationTermWithBlankUriIs400
- Throws:
TimeoutException
-
testGetAnnotationTermWithMissingUriIs400
- Throws:
TimeoutException
-
testGetAnnotationTermWhenLookupTimesOut
- Throws:
TimeoutException
-
testSearchAnnotationsCollapsesDuplicateEeIdsAcrossClasses
public void testSearchAnnotationsCollapsesDuplicateEeIdsAcrossClasses() throws SearchException, TimeoutException- Throws:
SearchExceptionTimeoutException
-