@Test public void setupTextualDiffWhenWarnConflictDisabledTest() { doReturn(ChangeType.ADD).when(diff).getChangeType(); presenter.setup(diff, false); verify(view).setupTextualContent(anyString(), anyString(), eq(false)); }
public void setup(final ChangeRequestDiff changeRequestDiff, final boolean warnConflict) { diff = changeRequestDiff; diffMode = resolveDiffMode(diff); final String resolveDiffFilename = resolveDiffFilename(diff.getChangeType(), diff.getOldFilePath().getFileName(), diff.getNewFilePath().getFileName()); prepareDiff(diff, resolveDiffFilename, warnConflict); view.expandCollapsibleContainer(open); if (open && !canClose) { view.removeCollapseLink(); } ready = true; }
DiffItemPresenter { public void setup(final ChangeRequestDiff changeRequestDiff, final boolean warnConflict) { diff = changeRequestDiff; diffMode = resolveDiffMode(diff); final String resolveDiffFilename = resolveDiffFilename(diff.getChangeType(), diff.getOldFilePath().getFileName(), diff.getNewFilePath().getFileName()); prepareDiff(diff, resolveDiffFilename, warnConflict); view.expandCollapsibleContainer(open); if (open && !canClose) { view.removeCollapseLink(); } ready = true; } }
DiffItemPresenter { public void setup(final ChangeRequestDiff changeRequestDiff, final boolean warnConflict) { diff = changeRequestDiff; diffMode = resolveDiffMode(diff); final String resolveDiffFilename = resolveDiffFilename(diff.getChangeType(), diff.getOldFilePath().getFileName(), diff.getNewFilePath().getFileName()); prepareDiff(diff, resolveDiffFilename, warnConflict); view.expandCollapsibleContainer(open); if (open && !canClose) { view.removeCollapseLink(); } ready = true; } @Inject  DiffItemPresenter(final View view,
                             final ResourceTypeManagerCache resourceTypeManagerCache,
                             final PlaceManager placeManager,
                             final TranslationService ts); }
DiffItemPresenter { public void setup(final ChangeRequestDiff changeRequestDiff, final boolean warnConflict) { diff = changeRequestDiff; diffMode = resolveDiffMode(diff); final String resolveDiffFilename = resolveDiffFilename(diff.getChangeType(), diff.getOldFilePath().getFileName(), diff.getNewFilePath().getFileName()); prepareDiff(diff, resolveDiffFilename, warnConflict); view.expandCollapsibleContainer(open); if (open && !canClose) { view.removeCollapseLink(); } ready = true; } @Inject  DiffItemPresenter(final View view,
                             final ResourceTypeManagerCache resourceTypeManagerCache,
                             final PlaceManager placeManager,
                             final TranslationService ts); @PostConstruct void postConstruct(); @PreDestroy void preDestroy(); View getView(); void setup(final ChangeRequestDiff changeRequestDiff,
                      final boolean warnConflict); void draw(); void toggleCollapsibleContainerState(); }
DiffItemPresenter { public void setup(final ChangeRequestDiff changeRequestDiff, final boolean warnConflict) { diff = changeRequestDiff; diffMode = resolveDiffMode(diff); final String resolveDiffFilename = resolveDiffFilename(diff.getChangeType(), diff.getOldFilePath().getFileName(), diff.getNewFilePath().getFileName()); prepareDiff(diff, resolveDiffFilename, warnConflict); view.expandCollapsibleContainer(open); if (open && !canClose) { view.removeCollapseLink(); } ready = true; } @Inject  DiffItemPresenter(final View view,
                             final ResourceTypeManagerCache resourceTypeManagerCache,
                             final PlaceManager placeManager,
                             final TranslationService ts); @PostConstruct void postConstruct(); @PreDestroy void preDestroy(); View getView(); void setup(final ChangeRequestDiff changeRequestDiff,
                      final boolean warnConflict); void draw(); void toggleCollapsibleContainerState();  }