Package ubic.gemma.rest
Class AnnotationsRestTest
java.lang.Object
org.glassfish.jersey.test.JerseyTest
ubic.gemma.rest.util.BaseJerseyTest
ubic.gemma.rest.util.BaseJerseyIntegrationTest
ubic.gemma.rest.AnnotationsRestTest
- All Implemented Interfaces:
org.springframework.beans.factory.Aware,org.springframework.context.ApplicationContextAware
End-to-end checks for
AnnotationsWebService.
Counts depend on the loaded ontologies and indexed characteristics, so these tests assert wiring (response shape,
presence of the usageCount field) rather than exact numbers. Numeric correctness is covered by
AnnotationsWebServiceTest.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidvoidvoidvoidvoidvoidMethods inherited from class ubic.gemma.rest.util.BaseJerseyIntegrationTest
setUpAuthentication, tearDownSecurityContextMethods 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
-
AnnotationsRestTest
public AnnotationsRestTest()
-
-
Method Details
-
testSearchAnnotationsReturnsUsageCountField
public void testSearchAnnotationsReturnsUsageCountField() -
testSearchAnnotationsRejectsEmptyQuery
public void testSearchAnnotationsRejectsEmptyQuery() -
testGetAnnotationTermWithUnknownUriIs404
public void testGetAnnotationTermWithUnknownUriIs404() -
testGetAnnotationTermWithBlankUriIs400
public void testGetAnnotationTermWithBlankUriIs400() -
testGetAnnotationTermWithMissingUriIs400
public void testGetAnnotationTermWithMissingUriIs400() -
testGetAnnotationCategoriesReturnsList
public void testGetAnnotationCategoriesReturnsList() -
testGetAnnotationPredicatesReturnsList
public void testGetAnnotationPredicatesReturnsList()
-