Class PlatformsWebServicePslTrackTest

java.lang.Object
ubic.gemma.rest.PlatformsWebServicePslTrackTest

@ExtendWith(org.mockito.junit.jupiter.MockitoExtension.class) public class PlatformsWebServicePslTrackTest extends Object
Pure-Mockito test for GET /platforms/{platform}/elements/{probe}/pslTrack, which replaces the retired gemma-web BlatResultTrackController (blatTrack.html?id=).
  • Constructor Details

    • PlatformsWebServicePslTrackTest

      public PlatformsWebServicePslTrackTest()
  • Method Details

    • setUp

      @BeforeEach public void setUp()
    • pslTrackIsServedAsPlainTextNamedAfterTheProbe

      @Test public void pslTrackIsServedAsPlainTextNamedAfterTheProbe()
    • everyAlignmentOfTheProbeLandsInTheOneTrack

      @Test public void everyAlignmentOfTheProbeLandsInTheOneTrack()
      The whole point of keying on the probe rather than on a BLAT result id: every alignment of the probe belongs in one track, so the user sees them together.
    • unplaceableAlignmentsAreDroppedRatherThanFailingTheTrack

      @Test public void unplaceableAlignmentsAreDroppedRatherThanFailingTheTrack()
      An alignment with no target chromosome cannot be placed in the browser. It is dropped rather than allowed to fail the whole track, so a probe with one bad alignment still renders.
    • downloadServesAnAttachmentNamedForTheProbe

      @Test public void downloadServesAnAttachmentNamedForTheProbe()
    • probeWithNoAlignmentsIsA404

      @Test public void probeWithNoAlignmentsIsA404()
    • probeWithOnlyUnplaceableAlignmentsIsA404

      @Test public void probeWithOnlyUnplaceableAlignmentsIsA404()
      Only unplaceable alignments is a 404 too -- there is nothing to show in the browser, and an empty track would read as "aligned nowhere" rather than "cannot be placed".
    • probeWithNoBiologicalCharacteristicIsA404

      @Test public void probeWithNoBiologicalCharacteristicIsA404()