Package com.google.eclipse.javascript.jstestdriver.ui.view.actions

Examples of com.google.eclipse.javascript.jstestdriver.ui.view.actions.ServerStartStopViewActionDelegate


          @Override
          public int getPort() {
            return 42242;
          }
        });
    ServerStartStopViewActionDelegate delegate = new ServerStartStopViewActionDelegate(icons, serverController);
    Action action = new Action() {};

    delegate.run(action);

    assertEquals("Stop Server", action.getText());
    assertFalse("Start icon not called", startServerIconCalled);
    assertTrue("Stop icon called", stopServerIconCalled);

    delegate.run(action);

    assertTrue("Start icon called", startServerIconCalled);
    assertFalse("Stop icon not called", stopServerIconCalled);
    assertEquals("Start Server", action.getText());
  }
View Full Code Here

TOP

Related Classes of com.google.eclipse.javascript.jstestdriver.ui.view.actions.ServerStartStopViewActionDelegate

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.