• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

Java FrameFixture类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Java中org.assertj.swing.fixture.FrameFixture的典型用法代码示例。如果您正苦于以下问题:Java FrameFixture类的具体用法?Java FrameFixture怎么用?Java FrameFixture使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



FrameFixture类属于org.assertj.swing.fixture包,在下文中一共展示了FrameFixture类的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: setup

import org.assertj.swing.fixture.FrameFixture; //导入依赖的package包/类
@Before
public void setup() {    
  // Create a frame
  JFrame frame = new JFrame(WINDOW_TITLE);

  // Create an instance of the applet
  QuickHullView applet = new QuickHullView(DEFAULT_NUMBER_OF_POINTS, DEFAULT_DELAY_TO_DRAW);
  
  // Add the applet instance to the frame
  frame.add(applet, BorderLayout.CENTER);
  
  // Invoke applet's init method
  applet.init();
  applet.start();

  // Settings for the frame
  frame.setSize(WINDOW_WIDTH, WINDOW_HEIGHT);
  frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
  frame.setLocationRelativeTo(null);                          // Center the frame
  
  // Display the frame
  frame.setVisible(true);
  window = new FrameFixture(frame);                                     // Start the FrameFixture for AssertJ Swing testing
}
 
开发者ID:AdrianBZG,项目名称:QuickHull_Algorithm,代码行数:25,代码来源:QuickHullViewTesting.java


示例2: setUp

import org.assertj.swing.fixture.FrameFixture; //导入依赖的package包/类
@Before
public void setUp() throws Exception {
	DBKS.getDBKS().konektatu(DBKS.getDBKS().getDefaultPath());
	DBKS.getDBKS().aginduaExekutatu(
			"INSERT OR REPLACE INTO Jokalaria(Izena, AzkenData, IrabaziKop, GalduKop) VALUES ('Test', '01-01-2010', 10,20 )");
	AlKaboom.getAlKaboom().setDatubasePath(DBKS.getDBKS().getDefaultPath());
	UI frame = GuiActionRunner.execute(new GuiQuery<UI>() {
		@Override
		protected UI executeInEDT() {
			UI oraingoUI = new UI();
			oraingoUI.dekorazioGabeHasieratu();
			oraingoUI.kautotuHasieratu();
			AlKaboom.getAlKaboom().setUI(oraingoUI);
			return oraingoUI;
		}
	});
	window = new FrameFixture(frame);
	window.show();
}
 
开发者ID:Porobu,项目名称:Al-kaboom,代码行数:20,代码来源:KautotuTest.java


示例3: setUp

import org.assertj.swing.fixture.FrameFixture; //导入依赖的package包/类
@Before
public void setUp() throws Exception {
	
	application(Start.class).start();
	AppFrame notesFrame = GuiActionRunner.execute(() -> new AppFrame());
	window = new FrameFixture(notesFrame);
	window.show();
	
}
 
开发者ID:ser316asu,项目名称:SER316-Ingolstadt,代码行数:10,代码来源:testHighlight.java


示例4: start

import org.assertj.swing.fixture.FrameFixture; //导入依赖的package包/类
@Before
public void start() throws Exception {
	application(Start.class).start();
	
	AppFrame notesFrame = GuiActionRunner.execute(new Callable<AppFrame>() {
		public AppFrame call() throws Exception {
			return new AppFrame();
		}
	});
	
	window = new FrameFixture(notesFrame);
	window.show();
}
 
开发者ID:ser316asu,项目名称:SER316-Ingolstadt,代码行数:14,代码来源:testStrikethrough.java


示例5: setUp

import org.assertj.swing.fixture.FrameFixture; //导入依赖的package包/类
@Before
public void setUp() throws Exception {
	application(Start.class).start();
	AppFrame notesFrame = GuiActionRunner.execute(() -> new AppFrame());
	window = new FrameFixture(notesFrame);
	//window.show();
}
 
开发者ID:ser316asu,项目名称:SER316-Ingolstadt,代码行数:8,代码来源:testSubscript.java


示例6: accomplishAs

import org.assertj.swing.fixture.FrameFixture; //导入依赖的package包/类
public GenericTypeMatcher<JFrame> accomplishAs(Agent agent) {
    SwingAppDriver swingAppDriver = agent.usingThe(SwingAppDriver.class);
    Pause.pause(new ComponentFoundCondition("Waiting for Frame to load", swingAppDriver.robot().finder(), new GenericTypeMatcher<JFrame>(JFrame.class) {
        @Override
        protected boolean isMatching(JFrame frame) {
            return frame.getClass() == clazz;
        }
    }), swingAppDriver.getDefaultWaitingTimeout());
    FrameFixture window = WindowFinder.findFrame(frameMatcher).using(swingAppDriver.robot());
    agent.keepsInMind(rememberAsKey,window);
    return frameMatcher;
}
 
开发者ID:MagenTys,项目名称:cherry-fest,代码行数:13,代码来源:FindFrame.java


示例7: accomplishAs

import org.assertj.swing.fixture.FrameFixture; //导入依赖的package包/类
@Override
public Agent accomplishAs(Agent agent) {
    FrameFixture window = agent.recalls(MemoryKeys.Screens.MAIN_WINDOW, FrameFixture.class);
    if(swingScreenElement.getName() != null) {
        window.textBox(swingScreenElement.getName()).enterText(value);
    } else {
        window.textBox(matcherFor(swingScreenElement)).enterText(value);
    }
    return agent;
}
 
开发者ID:MagenTys,项目名称:cherry-fest,代码行数:11,代码来源:FillIn.java


示例8: accomplishAs

import org.assertj.swing.fixture.FrameFixture; //导入依赖的package包/类
@Override
public String accomplishAs(Agent agent) {
    FrameFixture window = agent.recalls(MemoryKeys.Screens.MAIN_WINDOW, FrameFixture.class);
    JButtonFixture button = window.button(matcherFor(element));
    return button.text();

}
 
开发者ID:MagenTys,项目名称:cherry-fest,代码行数:8,代码来源:GetButtonText.java


示例9: startApplication

import org.assertj.swing.fixture.FrameFixture; //导入依赖的package包/类
/**
 * Starts the application
 */
protected void startApplication() {

	MidiAutomator.test = true;
	MainFrame mainFrame = GuiActionRunner
			.execute(new GuiQuery<MainFrame>() {

				@Override
				protected MainFrame executeInEDT() {

					if (ctx == null) {
						ctx = new AnnotationConfigApplicationContext(
								AppConfig.class);
					}

					presenter = (Presenter) ctx.getBean(Presenter.class);

					return presenter.openMainFrame();
				}
			});

	window = new FrameFixture(robot(), mainFrame);

	GUIAutomations.window = window;
	GUIAutomations.robot = robot();
	configure();

	try {
		currentPath = new File(".").getCanonicalPath();
	} catch (IOException e1) {
		e1.printStackTrace();
	}
}
 
开发者ID:aguelle,项目名称:MIDI-Automator,代码行数:36,代码来源:FunctionalBaseCase.java


示例10: me

import org.assertj.swing.fixture.FrameFixture; //导入依赖的package包/类
@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);
}
 
开发者ID:otros-systems,项目名称:otroslogviewer,代码行数:9,代码来源:MainFrame.java


示例11: setup

import org.assertj.swing.fixture.FrameFixture; //导入依赖的package包/类
@Before
public void setup() {
  view = new RandomWalkView();
  view.showView();
  window = new FrameFixture(view);                                     // Start the FrameFixture for AssertJ Swing testing
}
 
开发者ID:AdrianBZG,项目名称:Markov_Random-Walk_Algorithm,代码行数:7,代码来源:RandomWalkPanelTesting.java


示例12: LogViewPanel

import org.assertj.swing.fixture.FrameFixture; //导入依赖的package包/类
public LogViewPanel(FrameFixture frame, Robot robot) {
  super(robot);
  this.frame = frame;
}
 
开发者ID:otros-systems,项目名称:otroslogviewer,代码行数:5,代码来源:LogViewPanel.java


示例13: TabBar

import org.assertj.swing.fixture.FrameFixture; //导入依赖的package包/类
public TabBar(FrameFixture frame, Robot robot) {
  super(robot);
  this.frame = frame;
}
 
开发者ID:otros-systems,项目名称:otroslogviewer,代码行数:5,代码来源:TabBar.java


示例14: WelcomeScreen

import org.assertj.swing.fixture.FrameFixture; //导入依赖的package包/类
public WelcomeScreen(FrameFixture frame, Robot robot) {
  super(robot);
  this.frame = frame;
}
 
开发者ID:otros-systems,项目名称:otroslogviewer,代码行数:5,代码来源:WelcomeScreen.java



注:本文中的org.assertj.swing.fixture.FrameFixture类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java Issue类代码示例发布时间:2022-05-22
下一篇:
Java AlwaysFailFencer类代码示例发布时间:2022-05-22
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap