@Test public void showColumnHeaderPositioningFloatingBlockColumns_Scale75pct() { when( transform.getScaleX() ).thenReturn( 0.75 ); when( transform.getScaleY() ).thenReturn( 0.75 ); popOver.show( modellerView, dtPresenter, 0 ); verify( view, times( 1 ) ).show( contentProviderArgumentCaptor.capture() ); final PopOverView.ContentProvider contentProvider = contentProviderArgumentCaptor.getValue(); contentProvider.getContent( ( PopOverView.Content content ) -> { assertEquals( 312, content.getX() ); assertEquals( 111, content.getY() ); assertEquals( "#", content.getContent() ); } ); }
@Override public void show(final GuidedDecisionTableModellerView modellerView, final GuidedDecisionTableView.Presenter dtPresenter, final int uiColumnIndex) { PortablePreconditions.checkNotNull("modellerView", modellerView); PortablePreconditions.checkNotNull("dtPresenter", dtPresenter); showSource(modellerView, dtPresenter, uiColumnIndex); }
ColumnHeaderPopOverImpl implements ColumnHeaderPopOver { @Override public void show(final GuidedDecisionTableModellerView modellerView, final GuidedDecisionTableView.Presenter dtPresenter, final int uiColumnIndex) { PortablePreconditions.checkNotNull("modellerView", modellerView); PortablePreconditions.checkNotNull("dtPresenter", dtPresenter); showSource(modellerView, dtPresenter, uiColumnIndex); } }
ColumnHeaderPopOverImpl implements ColumnHeaderPopOver { @Override public void show(final GuidedDecisionTableModellerView modellerView, final GuidedDecisionTableView.Presenter dtPresenter, final int uiColumnIndex) { PortablePreconditions.checkNotNull("modellerView", modellerView); PortablePreconditions.checkNotNull("dtPresenter", dtPresenter); showSource(modellerView, dtPresenter, uiColumnIndex); } @Inject  ColumnHeaderPopOverImpl(final PopOverView view,
                                   final ColumnDefinitionFactory columnDefinitionFactory); }
ColumnHeaderPopOverImpl implements ColumnHeaderPopOver { @Override public void show(final GuidedDecisionTableModellerView modellerView, final GuidedDecisionTableView.Presenter dtPresenter, final int uiColumnIndex) { PortablePreconditions.checkNotNull("modellerView", modellerView); PortablePreconditions.checkNotNull("dtPresenter", dtPresenter); showSource(modellerView, dtPresenter, uiColumnIndex); } @Inject  ColumnHeaderPopOverImpl(final PopOverView view,
                                   final ColumnDefinitionFactory columnDefinitionFactory); @Override void show(final GuidedDecisionTableModellerView modellerView,
                     final GuidedDecisionTableView.Presenter dtPresenter,
                     final int uiColumnIndex); @Override void hide(); }
ColumnHeaderPopOverImpl implements ColumnHeaderPopOver { @Override public void show(final GuidedDecisionTableModellerView modellerView, final GuidedDecisionTableView.Presenter dtPresenter, final int uiColumnIndex) { PortablePreconditions.checkNotNull("modellerView", modellerView); PortablePreconditions.checkNotNull("dtPresenter", dtPresenter); showSource(modellerView, dtPresenter, uiColumnIndex); } @Inject  ColumnHeaderPopOverImpl(final PopOverView view,
                                   final ColumnDefinitionFactory columnDefinitionFactory); @Override void show(final GuidedDecisionTableModellerView modellerView,
                     final GuidedDecisionTableView.Presenter dtPresenter,
                     final int uiColumnIndex); @Override void hide();  }