Examples of InfoAction


Examples of games.stendhal.server.actions.query.InfoAction

   * Tests for execute.
   */
  @Test
  public void testExecute() throws Exception {
    Player bob = PlayerTestHelper.createPlayer("bob");
    InfoAction info = new InfoAction();
    info.onAction(bob, null);
    assertFalse(bob.events().isEmpty());
    //assertEquals(null,bob.events().get(0));
   
  }
View Full Code Here

Examples of games.stendhal.server.actions.query.InfoAction

    StopAction.register();
    TradeAction.register();
    UseAction.register();
    WhereAction.register();
    WhoAction.register();
    register("info", new InfoAction());
    register("markscroll", new MarkScrollAction());
  }
View Full Code Here

Examples of org.apache.karaf.shell.commands.impl.InfoAction

public class InfoTest extends TestCase {

    private static final transient Logger LOGGER = LoggerFactory.getLogger(TestCase.class);

    public void testUptime() throws Exception {
        InfoAction infoAction = new InfoAction();
        // uptime 30 seconds
        assertEquals("30.000 seconds", infoAction.printDuration(30 * 1000));
        // uptime 2 minutes
        assertEquals("2 minutes", infoAction.printDuration(2 * 60 * 1000));
        // uptime 2 hours
        assertEquals("2 hours", infoAction.printDuration(2 * 3600 * 1000));
        // update 2 days and 2 hours
        assertEquals("2 days 2 hours", infoAction.printDuration(50 * 3600 * 1000));
    }
View Full Code Here

Examples of org.geotools.swing.action.InfoAction

                toolBar.addSeparator();
            }

            if (toolSet.contains(Tool.INFO)) {
                btn = new JButton(new InfoAction(mapPane));
                btn.setName(TOOLBAR_INFO_BUTTON_NAME);
                toolBar.add(btn);

                toolBar.addSeparator();
            }
View Full Code Here

Examples of org.geotools.swt.action.InfoAction

        this.showLayerTable = showLayerTable;
        this.content = content;
        this.renderer = renderer;

        // drawAction = new DrawShapeAction();
        infoAction = new InfoAction();
        panAction = new PanAction();
        resetAction = new ResetAction();
        zoominAction = new ZoomInAction();
        zoomoutAction = new ZoomOutAction();
        openShapeAction = new OpenShapefileAction();
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.