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(WithSecurityContextTestExecutionListener.class) public class AnnotationsWebServiceTest extends BaseJerseyTest
- Author:
- poirigui
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAnnotationsWebServiceTest.AnnotationsWebServiceContextConfiguration
-
Constructor Summary
Constructors Constructor Description AnnotationsWebServiceTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidresetMocks()voidsetUpMocks()voidtestChildren()voidtestParents()voidtestParentsWhenInferenceTimeout()voidtestParentsWhenTermIsNotFound()voidtestSearchTaxonDatasets()-
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:
SearchExceptionTimeoutException
-
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
-
-