@Test public void testShowTransformationBrowserh() { TransGraph transGraphMock = mock( TransGraph.class ); Control control1 = mock( Control.class ); Control control2 = mock( Control.class ); Browser browser = mock( Browser.class ); SashForm sash = mock( SashForm.class ); when( sash.getWeights() ).thenReturn( new int[] { 277, 722 } ); Composite comp1 = mock( Composite.class ); Composite comp2 = mock( Composite.class ); Composite comp3 = mock( Composite.class ); Composite comp4 = mock( Composite.class ); when( browser.getParent() ).thenReturn( comp1 ); when( comp1.getParent() ).thenReturn( comp2 ); when( comp2.getParent() ).thenReturn( comp3 ); when( comp3.getParent() ).thenReturn( sash ); when( comp4.getParent() ).thenReturn( sash ); Control[] children = new Control[] { control1, control2, browser }; when( transGraphMock.getChildren() ).thenReturn( children ); ExpandedContentManager.createExpandedContent( transGraphMock, "" ); verify( browser ).setUrl( "" ); }
public static void createExpandedContent( String url ) { createExpandedContent( spoonInstance().getActiveTransGraph(), url ); }
ExpandedContentManager { public static void createExpandedContent( String url ) { createExpandedContent( spoonInstance().getActiveTransGraph(), url ); } }
ExpandedContentManager { public static void createExpandedContent( String url ) { createExpandedContent( spoonInstance().getActiveTransGraph(), url ); }  }
ExpandedContentManager { public static void createExpandedContent( String url ) { createExpandedContent( spoonInstance().getActiveTransGraph(), url ); }  static boolean isVisible(); static boolean isVisible( TransGraph graph ); static void createExpandedContent( String url ); static void createExpandedContent( TransGraph parent, String url ); static void showExpandedContent(); static void showExpandedContent( TransGraph graph ); static Browser getExpandedContentForTransGraph( TransGraph graph ); static void hideExpandedContent(); static void closeExpandedContent(); static void hideExpandedContent( TransGraph graph ); static void closeExpandedContent( TransGraph graph ); }
ExpandedContentManager { public static void createExpandedContent( String url ) { createExpandedContent( spoonInstance().getActiveTransGraph(), url ); }  static boolean isVisible(); static boolean isVisible( TransGraph graph ); static void createExpandedContent( String url ); static void createExpandedContent( TransGraph parent, String url ); static void showExpandedContent(); static void showExpandedContent( TransGraph graph ); static Browser getExpandedContentForTransGraph( TransGraph graph ); static void hideExpandedContent(); static void closeExpandedContent(); static void hideExpandedContent( TransGraph graph ); static void closeExpandedContent( TransGraph graph );  }