@Test public void minimizeFlagSetToFalseWhenMaximized(){ uut.minimized = true; uut.isMaximizable = true; uut.btnRestore = mock(ToolButton.class); uut.getResizable(); uut.setMaximized(true); assertFalse(uut.minimized); }
void setMaximized(boolean maximize) { if (isMaximizable) { this.maximized = maximize; if (maximize) { maximize(); minimized = false; } else { restore(); } } }
IplantWindowBase extends Window implements IPlantWindowInterface { void setMaximized(boolean maximize) { if (isMaximizable) { this.maximized = maximize; if (maximize) { maximize(); minimized = false; } else { restore(); } } } }
IplantWindowBase extends Window implements IPlantWindowInterface { void setMaximized(boolean maximize) { if (isMaximizable) { this.maximized = maximize; if (maximize) { maximize(); minimized = false; } else { restore(); } } } IplantWindowBase();  IplantWindowBase(final IplantWindowAppearance appearance); }
IplantWindowBase extends Window implements IPlantWindowInterface { void setMaximized(boolean maximize) { if (isMaximizable) { this.maximized = maximize; if (maximize) { maximize(); minimized = false; } else { restore(); } } } IplantWindowBase();  IplantWindowBase(final IplantWindowAppearance appearance); @Override boolean isMaximized(); @Override boolean isMinimized(); @Override void minimize(); @Override Window asWindow(); @Override void show(final C windowConfig,
                                              final String tag,
                                              final boolean isMaximizable); @Override void update(C config); }
IplantWindowBase extends Window implements IPlantWindowInterface { void setMaximized(boolean maximize) { if (isMaximizable) { this.maximized = maximize; if (maximize) { maximize(); minimized = false; } else { restore(); } } } IplantWindowBase();  IplantWindowBase(final IplantWindowAppearance appearance); @Override boolean isMaximized(); @Override boolean isMinimized(); @Override void minimize(); @Override Window asWindow(); @Override void show(final C windowConfig,
                                              final String tag,
                                              final boolean isMaximizable); @Override void update(C config);  }