@Test public void testShowAssetPartUsagesWithoutResponse() { displayer.showAssetPartUsages(currentAssetPath, RESOURCE_FQN, RESOURCE_PART, PartType.FIELD, okCommand, cancelCommand); verify(translationService).format(anyString(), anyString()); verify(view).getDefaultMessageContainer(); verify(htmlElement).setInnerHTML(anyString()); verify(assetsUsageService).getAssetPartUsages(anyString(), anyString(), any(), any()); verify(view, never()).show(htmlElement, queryResults); verify(okCommand).execute(); }
public void showAssetPartUsages(Path path, String resourceFQN, String resourcePart, PartType partType, Command okCommand, Command cancelCommand) { showAssetPartUsages(translationService.format(RefactoringConstants.ShowAssetUsagesDisplayerViewViewImplPartUsages, resourcePart), path, resourceFQN, resourcePart, partType, okCommand, cancelCommand); }
ShowAssetUsagesDisplayer implements ShowAssetUsagesDisplayerView.Presenter { public void showAssetPartUsages(Path path, String resourceFQN, String resourcePart, PartType partType, Command okCommand, Command cancelCommand) { showAssetPartUsages(translationService.format(RefactoringConstants.ShowAssetUsagesDisplayerViewViewImplPartUsages, resourcePart), path, resourceFQN, resourcePart, partType, okCommand, cancelCommand); } }
ShowAssetUsagesDisplayer implements ShowAssetUsagesDisplayerView.Presenter { public void showAssetPartUsages(Path path, String resourceFQN, String resourcePart, PartType partType, Command okCommand, Command cancelCommand) { showAssetPartUsages(translationService.format(RefactoringConstants.ShowAssetUsagesDisplayerViewViewImplPartUsages, resourcePart), path, resourceFQN, resourcePart, partType, okCommand, cancelCommand); } @Inject  ShowAssetUsagesDisplayer(ShowAssetUsagesDisplayerView view,
                                    TranslationService translationService,
                                    Caller<AssetsUsageService> assetsUsageServiceCaller); }
ShowAssetUsagesDisplayer implements ShowAssetUsagesDisplayerView.Presenter { public void showAssetPartUsages(Path path, String resourceFQN, String resourcePart, PartType partType, Command okCommand, Command cancelCommand) { showAssetPartUsages(translationService.format(RefactoringConstants.ShowAssetUsagesDisplayerViewViewImplPartUsages, resourcePart), path, resourceFQN, resourcePart, partType, okCommand, cancelCommand); } @Inject  ShowAssetUsagesDisplayer(ShowAssetUsagesDisplayerView view,
                                    TranslationService translationService,
                                    Caller<AssetsUsageService> assetsUsageServiceCaller); @PostConstruct void initialize(); void showAssetUsages(final Path path,
                                final String resourceFQN,
                                final ResourceType resourceType,
                                final Command okCommand,
                                final Command cancelCommand); void showAssetUsages(final String headerMessage,
                                final Path path,
                                final String resourceFQN,
                                final ResourceType resourceType,
                                final Command okCommand,
                                final Command cancelCommand); void showAssetUsages(final HTMLElement headerElement,
                                final Path path,
                                final String resourceFQN,
                                final ResourceType resourceType,
                                final Command okCommand,
                                final Command cancelCommand); void showAssetPartUsages(Path path,
                                    String resourceFQN,
                                    String resourcePart,
                                    PartType partType,
                                    Command okCommand,
                                    Command cancelCommand); void showAssetPartUsages(final String headerMessage,
                                    final Path path,
                                    final String resourceFQN,
                                    final String resourcePart,
                                    final PartType partType,
                                    final Command okCommand,
                                    final Command cancelCommand); void showAssetPartUsages(final HTMLElement headerElement,
                                    final Path path,
                                    final String resourceFQN,
                                    final String resourcePart,
                                    final PartType partType,
                                    final Command okCommand,
                                    final Command cancelCommand); @Override String getAssetType(Path path); @Override void onClose(); @Override void onOk(); @Override void onCancel(); }
ShowAssetUsagesDisplayer implements ShowAssetUsagesDisplayerView.Presenter { public void showAssetPartUsages(Path path, String resourceFQN, String resourcePart, PartType partType, Command okCommand, Command cancelCommand) { showAssetPartUsages(translationService.format(RefactoringConstants.ShowAssetUsagesDisplayerViewViewImplPartUsages, resourcePart), path, resourceFQN, resourcePart, partType, okCommand, cancelCommand); } @Inject  ShowAssetUsagesDisplayer(ShowAssetUsagesDisplayerView view,
                                    TranslationService translationService,
                                    Caller<AssetsUsageService> assetsUsageServiceCaller); @PostConstruct void initialize(); void showAssetUsages(final Path path,
                                final String resourceFQN,
                                final ResourceType resourceType,
                                final Command okCommand,
                                final Command cancelCommand); void showAssetUsages(final String headerMessage,
                                final Path path,
                                final String resourceFQN,
                                final ResourceType resourceType,
                                final Command okCommand,
                                final Command cancelCommand); void showAssetUsages(final HTMLElement headerElement,
                                final Path path,
                                final String resourceFQN,
                                final ResourceType resourceType,
                                final Command okCommand,
                                final Command cancelCommand); void showAssetPartUsages(Path path,
                                    String resourceFQN,
                                    String resourcePart,
                                    PartType partType,
                                    Command okCommand,
                                    Command cancelCommand); void showAssetPartUsages(final String headerMessage,
                                    final Path path,
                                    final String resourceFQN,
                                    final String resourcePart,
                                    final PartType partType,
                                    final Command okCommand,
                                    final Command cancelCommand); void showAssetPartUsages(final HTMLElement headerElement,
                                    final Path path,
                                    final String resourceFQN,
                                    final String resourcePart,
                                    final PartType partType,
                                    final Command okCommand,
                                    final Command cancelCommand); @Override String getAssetType(Path path); @Override void onClose(); @Override void onOk(); @Override void onCancel(); static String UNKNOWN_ASSET_TYPE; }