Class GeneWebServiceOverviewTest

java.lang.Object
ubic.gemma.rest.GeneWebServiceOverviewTest

@ExtendWith(org.mockito.junit.jupiter.MockitoExtension.class) public class GeneWebServiceOverviewTest extends Object
Pure-Mockito tests for the two gene-page additions on GeneWebService: GET /genes/{gene}/overview (the fully-populated VO replacing the legacy loadGeneDetails DWR) and GET /genes/{gene}/homologues.
  • Constructor Details

    • GeneWebServiceOverviewTest

      public GeneWebServiceOverviewTest()
  • Method Details

    • setUp

      @BeforeEach public void setUp()
    • overviewReturnsFullyPopulatedVoWithGoTermCount

      @Test public void overviewReturnsFullyPopulatedVoWithGoTermCount()
    • overviewRaceWithDeleteThrows404

      @Test public void overviewRaceWithDeleteThrows404()
    • homologuesReturnsListFromFullyPopulatedVo

      @Test public void homologuesReturnsListFromFullyPopulatedVo()
    • homologuesReturnsEmptyListWhenNoneRegistered

      @Test public void homologuesReturnsEmptyListWhenNoneRegistered()
    • homologuesRaceWithDeleteThrows404

      @Test public void homologuesRaceWithDeleteThrows404()
    • overviewPayloadCarriesTheFieldsItAdvertises

      @Test public void overviewPayloadCarriesTheFieldsItAdvertises() throws Exception
      Throws:
      Exception
    • plainGeneValueObjectOmitsTheOverviewOnlyFields

      @Test public void plainGeneValueObjectOmitsTheOverviewOnlyFields() throws Exception
      Throws:
      Exception