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:
Aware
,ApplicationContextAware
@ContextConfiguration @TestExecutionListeners(org.springframework.security.test.context.support.WithSecurityContextTestExecutionListener.class) public class AnnotationsWebServiceTest extends BaseJerseyTest
- Author:
- poirigui
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AnnotationsWebServiceTest.AnnotationsWebServiceContextConfiguration
-
Constructor Summary
Constructors Constructor Description AnnotationsWebServiceTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
resetMocks()
void
setUpMocks()
void
testChildren()
void
testParents()
void
testParentsWhenInferenceTimeout()
void
testParentsWhenTermIsNotFound()
void
testSearchTaxonDatasets()
-
Methods inherited from class ubic.gemma.rest.util.BaseJerseyTest
configure, configureClient, getTestContainerFactory, setApplicationContext, setUp, tearDown
-
Methods 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
-
-
-
-
Method Detail
-
setUpMocks
public void setUpMocks()
-
resetMocks
public void resetMocks()
-
testSearchTaxonDatasets
@WithMockUser public void testSearchTaxonDatasets() throws SearchException, TimeoutException
- Throws:
SearchException
TimeoutException
-
testParents
public void testParents() throws TimeoutException
- Throws:
TimeoutException
-
testParentsWhenTermIsNotFound
public void testParentsWhenTermIsNotFound()
-
testParentsWhenInferenceTimeout
public void testParentsWhenInferenceTimeout() throws TimeoutException
- Throws:
TimeoutException
-
testChildren
public void testChildren() throws TimeoutException
- Throws:
TimeoutException
-
-