@Test public void testEnterLockedState() { try { Field cf = PanelInspector.class.getDeclaredField("isLocked"); cf.setAccessible(true); cf.set(panelInspector, Boolean.TRUE); showHideControllerMethod.invoke(panelInspector, true); System.out.println("The number of times exitLockedState() has been called: " + ((MockManifestation)view).getNumberCallsToExitLockedState()); Assert.assertEquals(((MockManifestation)view).getNumberCallsToExitLockedState(), 1); } catch (SecurityException e) { Assert.fail(e.getMessage(), e); } catch (NoSuchFieldException e) { Assert.fail(e.getMessage(), e); } catch (IllegalArgumentException e) { Assert.fail(e.getMessage(), e); } catch (IllegalAccessException e) { Assert.fail(e.getMessage(), e); } catch (InvocationTargetException e) { Assert.fail(e.getMessage(), e); } catch (AssertionError e) { Assert.fail(e.getMessage(), e); } }
@Override public void enterLockedState() { isLocked = false; super.enterLockedState(); view.enterLockedState(); }
PanelInspector extends View { @Override public void enterLockedState() { isLocked = false; super.enterLockedState(); view.enterLockedState(); } }
PanelInspector extends View { @Override public void enterLockedState() { isLocked = false; super.enterLockedState(); view.enterLockedState(); } PanelInspector(AbstractComponent ac, ViewInfo vi); }
PanelInspector extends View { @Override public void enterLockedState() { isLocked = false; super.enterLockedState(); view.enterLockedState(); } PanelInspector(AbstractComponent ac, ViewInfo vi); @Override SelectionProvider getSelectionProvider(); @Override void enterLockedState(); @Override void exitLockedState(); @Override boolean setHousedViewManifestation(ViewInfo viewInfo); @Override View getHousedViewManifestation(); }
PanelInspector extends View { @Override public void enterLockedState() { isLocked = false; super.enterLockedState(); view.enterLockedState(); } PanelInspector(AbstractComponent ac, ViewInfo vi); @Override SelectionProvider getSelectionProvider(); @Override void enterLockedState(); @Override void exitLockedState(); @Override boolean setHousedViewManifestation(ViewInfo viewInfo); @Override View getHousedViewManifestation();  }