PropertiesPanelViewImpl extends Composite implements PropertiesPanelView { @Override public void hideSwitcher() { projectDefaultPanel.setVisible(false); } @Inject  PropertiesPanelViewImpl(RunnerLocalizationConstant locale,
                                   RunnerResources resources,
                                   WidgetFactory widgetFactory); @Override void setDelegate(ActionDelegate delegate); @NotNull @Override String getName(); @Override void setName(@NotNull String name); @NotNull @Override RAM getRam(); @Override void selectMemory(@NotNull RAM size); @Override void addRamValue(@Min(value=0) int value); @Override void selectMemory(@Min(value=0) int size); @NotNull @Override Scope getScope(); @Override void selectScope(@NotNull Scope scope); @NotNull @Override String getType(); @Override void setConfig(@NotNull String config); @Override void setType(@NotNull String type); @Override void setPorts(Map<String, String> ports); @NotNull @Override Boot getBoot(); @Override void selectBoot(@NotNull Boot boot); @NotNull @Override Shutdown getShutdown(); @Override void selectShutdown(@NotNull Shutdown shutdown); @Override void setEnableSaveButton(boolean enable); @Override void setEnableCancelButton(boolean enable); @Override void setEnableDeleteButton(boolean enable); @Override void setEnableNameProperty(boolean enable); @Override void setEnableRamProperty(boolean enable); @Override void setEnableBootProperty(boolean enable); @Override void setEnableShutdownProperty(boolean enable); @Override void setEnableScopeProperty(boolean enable); @Override void setVisibleSaveButton(boolean visible); @Override void setVisibleDeleteButton(boolean visible); @Override void setVisibleCancelButton(boolean visible); @Override void setVisibleConfigLink(boolean visible); @Override void showEditor(@Nullable EditorPartPresenter editor); @Override void hideButtonsPanel(); @Override void changeSwitcherState(boolean isOn); @Override void hideSwitcher(); @Override void incorrectName(boolean isCorrect); @UiHandler("name") void onTextInputted(@SuppressWarnings("UnusedParameters") KeyUpEvent event); @UiHandler({"ram", "scope", "boot", "shutdown"}) void handleChange(@SuppressWarnings("UnusedParameters") ChangeEvent event); @UiHandler({"configLink"}) void handleConfigClick(@SuppressWarnings("UnusedParameters") ClickEvent event); static final String PORT_STUB; }
@Test public void elementsShouldBeHideWhenScopeIsProject() throws Exception { view.hideSwitcher(); verify(view.projectDefaultPanel).setVisible(false); }