Package com.eclipsesource.tabris.internal.ui

Examples of com.eclipsesource.tabris.internal.ui.TestSearchAction


    Shell shell = new Shell( display );
    shell.open();
    ui = mock( UI.class );
    mockUI( mock( SearchActionListener.class ) );
    uiRenderer = mock( WebUI.class );
    searchAction = spy( new TestSearchAction() );
    actionDescriptor = mockDescriptor( searchAction );
    webSearchAction = new WebSearchAction( ui, uiRenderer, actionDescriptor );
    webSearchAction.createUi( shell );
    control = webSearchAction.getControl();
    text = webSearchAction.getText();
View Full Code Here


  private TestSearchAction searchAction;
  private PropertyChangeHandler handler;

  @Before
  public void setUp() {
    searchAction = new TestSearchAction();
    handler = mock( PropertyChangeHandler.class );
    searchAction.getAdapter( PropertyChangeNotifier.class ).setPropertyChangeHandler( handler );
  }
View Full Code Here

  }

  @Test
  public void testCreateActionRenderer_search() {
    ActionDescriptor descriptor = mock( ActionDescriptor.class );
    when( descriptor.getAction() ).thenReturn( new TestSearchAction() );

    ActionRenderer renderer = rendererFactory.createActionRenderer( ui, uiRenderer, descriptor );

    assertTrue( renderer instanceof WebSearchAction );
  }
View Full Code Here

TOP

Related Classes of com.eclipsesource.tabris.internal.ui.TestSearchAction

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.