Examples of actionKeyString()


Examples of abbot.tester.JComponentTester.actionKeyString()

    // Check scale spinner field has focus
    tester.waitForIdle();
    assertSame("Scale spinner doesn't have focus", ((JSpinner.DefaultEditor)scaleDistanceSpinner.getEditor()).getTextField(),
        KeyboardFocusManager.getCurrentKeyboardFocusManager().getFocusOwner());   
    // Enter as scale
    tester.actionKeyString("100");   
    // Check next button is enabled
    assertTrue("Next button isn't enabled", nextFinishOptionButton.isEnabled());
    tester.click(nextFinishOptionButton);
    // Check current step is origin
    assertStepShowing(panel, false, false, true);
View Full Code Here

Examples of abbot.tester.JComponentTester.actionKeyString()

    assertTrue("Next button isn't enabled", nextFinishOptionButton.isEnabled());
    tester.waitForIdle();
    assertSame("Origin x spinner doesn't have focus", ((JSpinner.DefaultEditor)xOriginSpinner.getEditor()).getTextField(),
        KeyboardFocusManager.getCurrentKeyboardFocusManager().getFocusOwner());   
    // Change origin
    tester.actionKeyString("10");   
    assertEquals("Wrong origin x spinner value", 10f, xOriginSpinner.getValue());

    tester.click(nextFinishOptionButton);
    // Check home has a background image
    BackgroundImage backgroundImage = home.getBackgroundImage();
View Full Code Here

Examples of abbot.tester.JComponentTester.actionKeyString()

    tester.actionClick(planComponent, 300, 200);
    tester.actionMouseMove(planComponent,
        new ComponentLocation(new Point(310, 200)));
    tester.actionKeyStroke(KeyEvent.VK_ENTER);
    // Enter the length and the angle of the wall
    tester.actionKeyString("100");
    tester.actionKeyStroke(KeyEvent.VK_TAB);
    tester.actionKeyString("315");
    tester.actionKeyStroke(KeyEvent.VK_ENTER);
    // Create 3 walls with same length
    Thread.sleep(500);
View Full Code Here

Examples of abbot.tester.JComponentTester.actionKeyString()

        new ComponentLocation(new Point(310, 200)));
    tester.actionKeyStroke(KeyEvent.VK_ENTER);
    // Enter the length and the angle of the wall
    tester.actionKeyString("100");
    tester.actionKeyStroke(KeyEvent.VK_TAB);
    tester.actionKeyString("315");
    tester.actionKeyStroke(KeyEvent.VK_ENTER);
    // Create 3 walls with same length
    Thread.sleep(500);
    tester.actionKeyStroke(KeyEvent.VK_ENTER);
    Thread.sleep(500);
View Full Code Here

Examples of abbot.tester.JComponentTester.actionKeyString()

        planComponent.convertYPixelToModel(200), wall7);
    tester.waitForIdle();
    tester.actionKeyRelease(KeyEvent.VK_SHIFT);
    // Take control again with keyboard and close the walls square
    tester.actionKeyStroke(KeyEvent.VK_ENTER);
    tester.actionKeyString("100");
    tester.actionKeyStroke(KeyEvent.VK_TAB);
    tester.actionKeyString("90");
    tester.actionKeyStroke(KeyEvent.VK_ENTER);
    // Check created walls
    assertEquals("Wrong walls count", 7, frame.home.getWalls().size());
View Full Code Here

Examples of abbot.tester.JComponentTester.actionKeyString()

    tester.actionKeyRelease(KeyEvent.VK_SHIFT);
    // Take control again with keyboard and close the walls square
    tester.actionKeyStroke(KeyEvent.VK_ENTER);
    tester.actionKeyString("100");
    tester.actionKeyStroke(KeyEvent.VK_TAB);
    tester.actionKeyString("90");
    tester.actionKeyStroke(KeyEvent.VK_ENTER);
    // Check created walls
    assertEquals("Wrong walls count", 7, frame.home.getWalls().size());
    Wall wall4 = orderedWalls.get(4);
    Wall wall5 = orderedWalls.get(5);
View Full Code Here

Examples of abbot.tester.JComponentTester.actionKeyString()

    frame.planController.setMode(PlanController.Mode.DIMENSION_LINE_CREATION);
    assertEquals("Current mode isn't " + PlanController.Mode.DIMENSION_LINE_CREATION,
        PlanController.Mode.DIMENSION_LINE_CREATION, frame.planController.getMode());
    tester.actionClick(planComponent, 200, 300);
    tester.actionKeyStroke(KeyEvent.VK_ENTER);
    tester.actionKeyString("250"); // x start
    tester.actionKeyStroke(KeyEvent.VK_ENTER);
    tester.actionKeyString("200"); // length
    tester.actionKeyStroke(KeyEvent.VK_TAB);
    tester.actionKeyString("45"); // angle
    tester.actionKeyStroke(KeyEvent.VK_ENTER);
View Full Code Here

Examples of abbot.tester.JComponentTester.actionKeyString()

        PlanController.Mode.DIMENSION_LINE_CREATION, frame.planController.getMode());
    tester.actionClick(planComponent, 200, 300);
    tester.actionKeyStroke(KeyEvent.VK_ENTER);
    tester.actionKeyString("250"); // x start
    tester.actionKeyStroke(KeyEvent.VK_ENTER);
    tester.actionKeyString("200"); // length
    tester.actionKeyStroke(KeyEvent.VK_TAB);
    tester.actionKeyString("45"); // angle
    tester.actionKeyStroke(KeyEvent.VK_ENTER);
    tester.actionKeyString("50"); // offset
    tester.actionKeyStroke(KeyEvent.VK_ENTER);
View Full Code Here

Examples of abbot.tester.JComponentTester.actionKeyString()

    tester.actionKeyStroke(KeyEvent.VK_ENTER);
    tester.actionKeyString("250"); // x start
    tester.actionKeyStroke(KeyEvent.VK_ENTER);
    tester.actionKeyString("200"); // length
    tester.actionKeyStroke(KeyEvent.VK_TAB);
    tester.actionKeyString("45"); // angle
    tester.actionKeyStroke(KeyEvent.VK_ENTER);
    tester.actionKeyString("50"); // offset
    tester.actionKeyStroke(KeyEvent.VK_ENTER);
   
View Full Code Here

Examples of abbot.tester.JComponentTester.actionKeyString()

    tester.actionKeyStroke(KeyEvent.VK_ENTER);
    tester.actionKeyString("200"); // length
    tester.actionKeyStroke(KeyEvent.VK_TAB);
    tester.actionKeyString("45"); // angle
    tester.actionKeyStroke(KeyEvent.VK_ENTER);
    tester.actionKeyString("50"); // offset
    tester.actionKeyStroke(KeyEvent.VK_ENTER);
   

    Collection<DimensionLine> dimensionLines = frame.home.getDimensionLines();
    assertEquals("Incorrect dimension lines count", 1, dimensionLines.size());
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.