Examples of TestAction


Examples of ch.qos.logback.classic.control.TestAction

    List actionList = s.getActionList();
    int size = actionList.size();
    long start = System.nanoTime();
    CreateLogger cl = null;
    for (int i = 0; i < size; i++) {
      TestAction action = (TestAction) actionList.get(i);
      if (action instanceof CreateLogger) {
        cl = (CreateLogger) action;
      }
    }
    if(cl == null) {
View Full Code Here

Examples of com.consol.citrus.TestAction

   
    @Test
    public void testCatchFirstActionFailing() {
        Catch catchAction = new Catch();
       
        TestAction action = EasyMock.createMock(TestAction.class);

        reset(action);
       
        action.execute(context);
        expectLastCall().once();
       
        replay(action);
       
        List<TestAction> actionList = new ArrayList<TestAction>();
View Full Code Here

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

  @Test
  public void testSelectionEvent_executeAction() {
    mockUI( mock( ActionListener.class ) );
    control.notifyListeners( SWT.Selection, new Event() );

    TestAction action = ( TestAction )actionDescriptor.getAction();
    assertTrue( action.wasExecuted() );
  }
View Full Code Here

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

    ActionListener listener = mock( ActionListener.class );
    mockUI( listener );

    control.notifyListeners( SWT.Selection, new Event() );

    TestAction action = ( TestAction )actionDescriptor.getAction();
    verify( listener ).executed( ui, action );
  }
View Full Code Here

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

    when( ui.getConfiguration() ).thenReturn( configuration );
  }

  private ActionDescriptor mockDescriptor() {
    ActionDescriptor descriptor = mock( ActionDescriptor.class );
    when( descriptor.getAction() ).thenReturn( new TestAction() );
    InputStream image = RemoteActionTest.class.getResourceAsStream( "testImage.png" );
    when( descriptor.getImage() ).thenReturn( ImageUtil.getBytes( image ) );
    when( descriptor.getTitle() ).thenReturn( "bar" );
    doReturn( Boolean.FALSE ).when( descriptor ).isEnabled();
    doReturn( Boolean.FALSE ).when( descriptor ).isVisible();
View Full Code Here

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

  }

  @Test
  public void testUpdateCreatesNewActionsCallsActionCreateUi() {
    List<ActionDescriptor> actions = new ArrayList<ActionDescriptor>();
    actions.add( new ActionDescriptor( "actionFoo", new TestAction() ) );
    when( descriptor.getActions() ).thenReturn( actions );
    webPage.createActions( WebRendererFactory.getInstance(), shell );
    actions.add( new ActionDescriptor( "actionFoo2", new TestAction() ) );

    webPage.update( descriptor, WebRendererFactory.getInstance(), shell );

    List<ActionRenderer> renderers = webPage.getActionRenderers();
    assertEquals( 2, renderers.size() );
View Full Code Here

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

  }

  @Test
  public void testUpdateDestroysOldActionsIfDeleted() {
    List<ActionDescriptor> actions = new ArrayList<ActionDescriptor>();
    actions.add( new ActionDescriptor( "actionFoo", new TestAction() ) );
    actions.add( new ActionDescriptor( "actionFoo2", new TestAction() ) );
    when( descriptor.getActions() ).thenReturn( actions );
    webPage.createActions( WebRendererFactory.getInstance(), shell );
    webPage.createActions( RemoteRendererFactory.getInstance(), shell );
    descriptor.getActions().remove( 1 );
View Full Code Here

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

    when( descriptor.getId() ).thenReturn( "foo" );
    when( descriptor.getTitle() ).thenReturn( "bar" );
    doReturn( Boolean.TRUE ).when( descriptor ).isTopLevel();
    when( descriptor.getPageStyle() ).thenReturn( new PageStyle[] { PageStyle.DEFAULT } );
    List<ActionDescriptor> actions = new ArrayList<ActionDescriptor>();
    actions.add( new ActionDescriptor( "actionFoo", new TestAction() ) );
    when( descriptor.getActions() ).thenReturn( actions );
    when( descriptor.getImage() ).thenReturn( UITestUtil.getImageBytes() );
    doReturn( TestPage.class ).when( descriptor ).getPageType();
  }
View Full Code Here

Examples of com.gwtplatform.dispatch.rpc.shared.action.TestAction

import com.gwtplatform.dispatch.shared.ActionException;

public class ActionTestBase {

    protected void testAction(Dispatch dispatch) throws ActionException, ServiceException {
        TestAction action = new TestAction(TestActionHandler.MESSAGE);
        TestResult result = dispatch.execute(action);
        Assert.assertTrue("Invalid action result! Processing error occured", result.getResult());
    }
View Full Code Here

Examples of net.sf.joafip.transformer.TestAction

    }
  }

  private void run() {
    System.out.println(TestAction.class.getClassLoader());
    TestAction x = new TestAction();
    x.run();
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.