public class TestTopScreenPresenter extends Object
Modifier and Type | Field and Description |
---|---|
static HBaseClassTestRule |
CLASS_RULE |
private static List<org.apache.hadoop.hbase.hbtop.field.FieldInfo> |
TEST_FIELD_INFOS |
private static List<org.apache.hadoop.hbase.hbtop.Record> |
TEST_RECORDS |
private static org.apache.hadoop.hbase.hbtop.screen.top.Summary |
TEST_SUMMARY |
private org.apache.hadoop.hbase.hbtop.screen.top.TopScreenModel |
topScreenModel |
private org.apache.hadoop.hbase.hbtop.screen.top.TopScreenPresenter |
topScreenPresenter |
private org.apache.hadoop.hbase.hbtop.screen.top.TopScreenView |
topScreenView |
Constructor and Description |
---|
TestTopScreenPresenter() |
Modifier and Type | Method and Description |
---|---|
private boolean |
assertHeaders(List<org.apache.hadoop.hbase.hbtop.screen.top.Header> actual) |
private boolean |
assertRecord(org.apache.hadoop.hbase.hbtop.Record actual,
org.apache.hadoop.hbase.hbtop.Record expected) |
private boolean |
assertRecords(List<org.apache.hadoop.hbase.hbtop.Record> actual) |
private boolean |
assertSelectedRecord(org.apache.hadoop.hbase.hbtop.Record actual,
int expectedSelectedRecodeIndex) |
private boolean |
assertSummary(org.apache.hadoop.hbase.hbtop.screen.top.Summary actual) |
void |
setup() |
void |
testHorizontalScrolling() |
void |
testRefresh() |
void |
testVerticalScrolling() |
private void |
verifyHorizontalScrolling(org.mockito.InOrder inOrder,
int expectedHeaderCount) |
private void |
verifyVerticalScrolling(org.mockito.InOrder inOrder,
int expectedSelectedRecodeIndex) |
public static final HBaseClassTestRule CLASS_RULE
private static final List<org.apache.hadoop.hbase.hbtop.field.FieldInfo> TEST_FIELD_INFOS
private static final List<org.apache.hadoop.hbase.hbtop.Record> TEST_RECORDS
private static final org.apache.hadoop.hbase.hbtop.screen.top.Summary TEST_SUMMARY
@Mock private org.apache.hadoop.hbase.hbtop.screen.top.TopScreenView topScreenView
@Mock private org.apache.hadoop.hbase.hbtop.screen.top.TopScreenModel topScreenModel
private org.apache.hadoop.hbase.hbtop.screen.top.TopScreenPresenter topScreenPresenter
public TestTopScreenPresenter()
public void setup()
public void testRefresh()
public void testVerticalScrolling()
private void verifyVerticalScrolling(org.mockito.InOrder inOrder, int expectedSelectedRecodeIndex)
public void testHorizontalScrolling()
private void verifyHorizontalScrolling(org.mockito.InOrder inOrder, int expectedHeaderCount)
private boolean assertSummary(org.apache.hadoop.hbase.hbtop.screen.top.Summary actual)
private boolean assertHeaders(List<org.apache.hadoop.hbase.hbtop.screen.top.Header> actual)
private boolean assertRecords(List<org.apache.hadoop.hbase.hbtop.Record> actual)
private boolean assertSelectedRecord(org.apache.hadoop.hbase.hbtop.Record actual, int expectedSelectedRecodeIndex)
private boolean assertRecord(org.apache.hadoop.hbase.hbtop.Record actual, org.apache.hadoop.hbase.hbtop.Record expected)
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.