@Test public void should_showHints() throws Exception { final AtomicReference<AnalysisFragmentImpl> analysisFragmentImplRef = new AtomicReference<>(); final List<AnalysisHint> hints; try (final ActivityScenario<AnalysisFragmentHostActivity> scenario = launchHostActivity( analysisFragmentImplRef)) { hints = AnalysisHint.getArray(); scenario.onActivity( new ActivityScenario.ActivityAction<AnalysisFragmentHostActivity>() { @Override public void perform(final AnalysisFragmentHostActivity activity) { final AnalysisFragmentImpl analysisFragment = analysisFragmentImplRef.get(); analysisFragment.showHints(hints); } }); assertThat(AnalysisHintsAnimatorShadow.startCalled).isTrue(); assertThat(AnalysisHintsAnimatorShadow.hints).containsExactlyElementsIn( hints); } }
@Override void showHints(final List<AnalysisHint> hints) { mHintsAnimator.stop(); mHintsAnimator.setHints(hints); mHintsAnimator.start(); }
AnalysisFragmentImpl extends AnalysisScreenContract.View { @Override void showHints(final List<AnalysisHint> hints) { mHintsAnimator.stop(); mHintsAnimator.setHints(hints); mHintsAnimator.start(); } }
AnalysisFragmentImpl extends AnalysisScreenContract.View { @Override void showHints(final List<AnalysisHint> hints) { mHintsAnimator.stop(); mHintsAnimator.setHints(hints); mHintsAnimator.start(); } AnalysisFragmentImpl(final FragmentImplCallback fragment,
            @NonNull final Document document,
            final String documentAnalysisErrorMessage); }
AnalysisFragmentImpl extends AnalysisScreenContract.View { @Override void showHints(final List<AnalysisHint> hints) { mHintsAnimator.stop(); mHintsAnimator.setHints(hints); mHintsAnimator.start(); } AnalysisFragmentImpl(final FragmentImplCallback fragment,
            @NonNull final Document document,
            final String documentAnalysisErrorMessage); @Override void hideError(); @Override void onNoExtractionsFound(); @Override void onDocumentAnalyzed(); @Override void showError(@NonNull final String message, final int duration); @Override void showError(@NonNull final String message, @NonNull final String buttonTitle,
            @NonNull final View.OnClickListener onClickListener); @Override void startScanAnimation(); @Override void stopScanAnimation(); @Override void setListener(@NonNull final AnalysisFragmentListener listener); void onCreate(final Bundle savedInstanceState); View onCreateView(final LayoutInflater inflater, final ViewGroup container,
            final Bundle savedInstanceState); void onStart(); void onDestroy(); }
AnalysisFragmentImpl extends AnalysisScreenContract.View { @Override void showHints(final List<AnalysisHint> hints) { mHintsAnimator.stop(); mHintsAnimator.setHints(hints); mHintsAnimator.start(); } AnalysisFragmentImpl(final FragmentImplCallback fragment,
            @NonNull final Document document,
            final String documentAnalysisErrorMessage); @Override void hideError(); @Override void onNoExtractionsFound(); @Override void onDocumentAnalyzed(); @Override void showError(@NonNull final String message, final int duration); @Override void showError(@NonNull final String message, @NonNull final String buttonTitle,
            @NonNull final View.OnClickListener onClickListener); @Override void startScanAnimation(); @Override void stopScanAnimation(); @Override void setListener(@NonNull final AnalysisFragmentListener listener); void onCreate(final Bundle savedInstanceState); View onCreateView(final LayoutInflater inflater, final ViewGroup container,
            final Bundle savedInstanceState); void onStart(); void onDestroy();  }