Class AnnotationsWebServiceTest.AnnotationsWebServiceContextConfiguration

java.lang.Object
ubic.gemma.rest.AnnotationsWebServiceTest.AnnotationsWebServiceContextConfiguration
Enclosing class:
AnnotationsWebServiceTest

@Configuration @TestComponent @Import(JacksonConfig.class) public static class AnnotationsWebServiceTest.AnnotationsWebServiceContextConfiguration extends Object
Author:
poirigui
  • Constructor Details

    • AnnotationsWebServiceContextConfiguration

      public AnnotationsWebServiceContextConfiguration()
  • Method Details

    • placeholderConfigurer

      @Bean public static TestPropertyPlaceholderConfigurer placeholderConfigurer()
    • ontologyService

      @Bean public OntologyService ontologyService()
    • ontologyTermValidator

      @Bean public OntologyTermValidator ontologyTermValidator()
      Required since the tag write paths here ground-check the terms they are about to add. A mock: the checking itself is covered by DatasetsWebServiceTest and OntologyTermValidatorImplTest.
    • annotationRelationService

      @Bean public AnnotationRelationService annotationRelationService()
      Required by AnnotationsWebService since the relation endpoints landed; without it every test here fails on context init rather than on anything it asserts. A mock, because nothing in this class exercises a relation — AnnotationRelationDaoTest does.
    • searchService

      @Bean public SearchService searchService()
    • characteristicService

      @Bean public CharacteristicService characteristicService()
    • expressionExperimentService

      @Bean public ExpressionExperimentService expressionExperimentService()
    • taxonService

      @Bean public TaxonService taxonService()
    • datasetRestService

      @Bean public DatasetArgService datasetRestService(ExpressionExperimentService service, SearchService searchService)
    • taxonArgService

      @Bean public TaxonArgService taxonArgService(TaxonService taxonService, GeneService geneService)
    • geneService

      @Bean public GeneService geneService()
    • ncbiGeneResolver

      @Bean public NcbiGeneResolver ncbiGeneResolver()
      NCBI fallback for the /annotations/term gene branch. A mock: the field it wires into is @Autowired(required = false), so this bean only needs to exist for a test to exercise the NCBI-fallback path at all — findByNCBIId-only tests never touch it.
    • annotationsWebService

      @Bean public AnnotationsWebService annotationsWebService(OntologyService ontologyService, SearchService searchService, CharacteristicService characteristicService, ExpressionExperimentService expressionExperimentService, DatasetArgService datasetRestService, TaxonArgService taxonArgService, GeneService geneService)
    • analyticsProvider

      @Bean public AnalyticsProvider analyticsProvider()
    • accessDecisionManager

      @Bean public org.springframework.security.access.AccessDecisionManager accessDecisionManager()
    • openApi

      @Bean public Future<io.swagger.v3.oas.models.OpenAPI> openApi()
    • buildInfo

      @Bean public BuildInfo buildInfo()