Class TestTopScreenPresenter

java.lang.Object
org.apache.hadoop.hbase.hbtop.screen.top.TestTopScreenPresenter

public class TestTopScreenPresenter extends Object
  • Field Details

    • CLASS_RULE

      public static final HBaseClassTestRule CLASS_RULE
    • TEST_FIELD_INFOS

      private static final List<org.apache.hadoop.hbase.hbtop.field.FieldInfo> TEST_FIELD_INFOS
    • TEST_RECORDS

      private static final List<org.apache.hadoop.hbase.hbtop.Record> TEST_RECORDS
    • TEST_SUMMARY

      private static final org.apache.hadoop.hbase.hbtop.screen.top.Summary TEST_SUMMARY
    • topScreenView

      @Mock private org.apache.hadoop.hbase.hbtop.screen.top.TopScreenView topScreenView
    • topScreenModel

      @Mock private org.apache.hadoop.hbase.hbtop.screen.top.TopScreenModel topScreenModel
    • topScreenPresenter

      private org.apache.hadoop.hbase.hbtop.screen.top.TopScreenPresenter topScreenPresenter
  • Constructor Details

  • Method Details

    • setup

      public void setup()
    • testRefresh

      public void testRefresh()
    • testVerticalScrolling

      public void testVerticalScrolling()
    • verifyVerticalScrolling

      private void verifyVerticalScrolling(org.mockito.InOrder inOrder, int expectedSelectedRecodeIndex)
    • testHorizontalScrolling

      public void testHorizontalScrolling()
    • verifyHorizontalScrolling

      private void verifyHorizontalScrolling(org.mockito.InOrder inOrder, int expectedHeaderCount)
    • assertSummary

      private boolean assertSummary(org.apache.hadoop.hbase.hbtop.screen.top.Summary actual)
    • assertHeaders

      private boolean assertHeaders(List<org.apache.hadoop.hbase.hbtop.screen.top.Header> actual)
    • assertRecords

      private boolean assertRecords(List<org.apache.hadoop.hbase.hbtop.Record> actual)
    • assertSelectedRecord

      private boolean assertSelectedRecord(org.apache.hadoop.hbase.hbtop.Record actual, int expectedSelectedRecodeIndex)
    • assertRecord

      private boolean assertRecord(org.apache.hadoop.hbase.hbtop.Record actual, org.apache.hadoop.hbase.hbtop.Record expected)