org.assertj.swing.fixture.FrameFixture Java Examples

The following examples show how to use org.assertj.swing.fixture.FrameFixture. 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 File: CalculatorGUITests.java    From testing-cin with MIT License 6 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 #2
Source File: MainFrame.java    From otroslogviewer with 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 #3
Source File: CalculatorGUITests_Alternative.java    From testing-cin with 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 File: LogViewPanel.java    From otroslogviewer with Apache License 2.0 4 votes vote down vote up
public LogViewPanel(FrameFixture frame, Robot robot) {
  super(robot);
  this.frame = frame;
}
 
Example #5
Source File: TabBar.java    From otroslogviewer with Apache License 2.0 4 votes vote down vote up
public TabBar(FrameFixture frame, Robot robot) {
  super(robot);
  this.frame = frame;
}
 
Example #6
Source File: WelcomeScreen.java    From otroslogviewer with Apache License 2.0 4 votes vote down vote up
public WelcomeScreen(FrameFixture frame, Robot robot) {
  super(robot);
  this.frame = frame;
}
 
Example #7
Source File: Mouse.java    From Pixelitor with 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 File: Keyboard.java    From Pixelitor with 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;
}