Java Code Examples for org.assertj.swing.fixture.FrameFixture

The following examples show how to use org.assertj.swing.fixture.FrameFixture. These examples are extracted from open source projects. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source Project: otroslogviewer   Source File: MainFrame.java    License: Apache License 2.0 5 votes vote down vote up
@Override
public FrameFixture me() {
  return WindowFinder.findFrame(new GenericTypeMatcher<JFrame>(JFrame.class) {
    protected boolean isMatching(JFrame frame1) {
      return frame1.getTitle().startsWith("OtrosLogViewer") && frame1.isShowing();
    }
  }).using(robot);
}
 
Example 2
Source Project: testing-cin   Source File: CalculatorGUITests.java    License: MIT License 5 votes vote down vote up
@Before
   public void setup() {
Calculator frame = GuiActionRunner.execute(new GuiQuery<Calculator>() {
	protected Calculator executeInEDT() {
	    return new Calculator();
	}
    });
window = new FrameFixture(frame);
window.show(); // shows the frame to test
   }
 
Example 3
Source Project: testing-cin   Source File: CalculatorGUITests_Alternative.java    License: MIT License 5 votes vote down vote up
@Before
public void onSetUp() {
    Calculator frame = GuiActionRunner.execute(new GuiQuery<Calculator>() {
            protected Calculator executeInEDT() {
                return new Calculator();
            }
        });
    window = new FrameFixture(robot(), frame);
    window.show(); // shows the frame to test
    robot().settings().delayBetweenEvents(200);
}
 
Example 4
Source Project: otroslogviewer   Source File: LogViewPanel.java    License: Apache License 2.0 4 votes vote down vote up
public LogViewPanel(FrameFixture frame, Robot robot) {
  super(robot);
  this.frame = frame;
}
 
Example 5
Source Project: otroslogviewer   Source File: TabBar.java    License: Apache License 2.0 4 votes vote down vote up
public TabBar(FrameFixture frame, Robot robot) {
  super(robot);
  this.frame = frame;
}
 
Example 6
Source Project: otroslogviewer   Source File: WelcomeScreen.java    License: Apache License 2.0 4 votes vote down vote up
public WelcomeScreen(FrameFixture frame, Robot robot) {
  super(robot);
  this.frame = frame;
}
 
Example 7
Source Project: Pixelitor   Source File: Mouse.java    License: GNU General Public License v3.0 4 votes vote down vote up
public Mouse(FrameFixture pw, Robot robot) {
    this.robot = robot;
    this.pw = pw;
}
 
Example 8
Source Project: Pixelitor   Source File: Keyboard.java    License: GNU General Public License v3.0 4 votes vote down vote up
public Keyboard(FrameFixture pw, Robot robot, AppRunner runner) {
    this.pw = pw;
    this.robot = robot;
    this.runner = runner;
}