当前位置: 首页>>代码示例>>Java>>正文


Java FrameFixture类代码示例

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


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

示例1: setUp

import org.fest.swing.fixture.FrameFixture; //导入依赖的package包/类
@Override
@Before
public void setUp() throws Exception {
    super.setUp();
    final PanelTestingFrame frame = GuiActionRunner.execute(new GuiQuery<PanelTestingFrame>() {
        protected PanelTestingFrame executeInEDT() {
            return getPanelTestingFrame();
        }
    });
    GuiActionRunner.execute(new GuiTask() {
        protected void executeInEDT() {
            disableTooltipAndBlinkRadeForChildrenToSatisfyIdeasUsefulTestCase(frame);
        }
    });
    window = new FrameFixture(frame);
    window.show();
}
 
开发者ID:ligasgr,项目名称:intellij-xquery,代码行数:18,代码来源:BaseGuiTest.java

示例2: shouldDisableSetAsDefaultButton

import org.fest.swing.fixture.FrameFixture; //导入依赖的package包/类
@Test
public void shouldDisableSetAsDefaultButton() {
    window.cleanUp();
    PanelTestingFrame frame = GuiActionRunner.execute(new GuiQuery<PanelTestingFrame>() {
        protected PanelTestingFrame executeInEDT() {
            cfg.DEFAULT = true;
            panel = new NameAndDefaultButtonPanel();
            return new PanelTestingFrame(panel.getPanel());
        }
    });
    FrameFixture anotherWindow = new FrameFixture(frame);

    anotherWindow.show();
    panel.init(cfg, aggregatingPanel, listener);

    anotherWindow.button(SET_AS_DEFAULT_BUTTON_NAME).requireDisabled();
    anotherWindow.cleanUp();
}
 
开发者ID:ligasgr,项目名称:intellij-xquery,代码行数:19,代码来源:NameAndDefaultButtonPanelGuiTest.java

示例3: setUp

import org.fest.swing.fixture.FrameFixture; //导入依赖的package包/类
@Before
public void setUp() {
	window = new FrameFixture(
			GuiActionRunner.execute(new GuiQuery<GraphStartScreen>() {
				protected GraphStartScreen executeInEDT() {
					return new GraphStartScreen();
				}
			}));
	window.show();
}
 
开发者ID:max6cn,项目名称:jmt,代码行数:11,代码来源:JSIMgraphGuiTest.java

示例4: mainJSIMgraphWindowDisplaysCorrectly

import org.fest.swing.fixture.FrameFixture; //导入依赖的package包/类
/**
 * Checks that, on the main JMT window, the user can press the "JSIMgraph"
 * button, and that this will open a new window of type @MainWindow
 * (which is the JSIMgraph frame).
 */
@Test
public void mainJSIMgraphWindowDisplaysCorrectly() {
	window.button(new ShortDescriptionButtonMatcher(GraphStartScreen.JMODEL_SHORT_DESCRIPTION)).click();
	FrameFixture jsimGraph = WindowFinder.findFrame(MainWindow.class).using(window.robot);
	jsimGraph.show();
}
 
开发者ID:max6cn,项目名称:jmt,代码行数:12,代码来源:JSIMgraphGuiTest.java

示例5: setUp

import org.fest.swing.fixture.FrameFixture; //导入依赖的package包/类
@Before
public void setUp() {
	window = new FrameFixture(
			GuiActionRunner.execute(new GuiQuery<GraphStartScreen>() {
				protected GraphStartScreen executeInEDT() {
					return new GraphStartScreen();
				}
			}));
	window.show();
	window.button(new ShortDescriptionButtonMatcher(GraphStartScreen.JMVA_SHORT_DESCRIPTION)).click();
	jmva = WindowFinder.findFrame(ExactWizard.class).using(window.robot);
}
 
开发者ID:max6cn,项目名称:jmt,代码行数:13,代码来源:JmvaGuiTest.java

示例6: JMVAhelpWindowDisplaysCorrectly

import org.fest.swing.fixture.FrameFixture; //导入依赖的package包/类
/**
 *  Checks that the help window for JMVA displays when the 
 *  appropriate button is pressed.
 */
@Test
public void JMVAhelpWindowDisplaysCorrectly() {
	jmva.menuItem(new TextMenuItemMatcher("JMVA Help")).click();
	FrameFixture helpWindow = WindowFinder.findFrame(PDFViewerBuffer.class).using(jmva.robot);
	helpWindow.close();
}
 
开发者ID:max6cn,项目名称:jmt,代码行数:11,代码来源:JmvaGuiTest.java

示例7: JMVAopenNewModel

import org.fest.swing.fixture.FrameFixture; //导入依赖的package包/类
/**
 * Checks that pressing the "New" button opens a new JMVA window
 */
@Test
public void JMVAopenNewModel() {
	jmva.menuItem(new TextMenuItemMatcher("New...")).click();
	FrameFixture newJmva = WindowFinder.findFrame(ExactWizard.class).using(jmva.robot);
	newJmva.close();
}
 
开发者ID:max6cn,项目名称:jmt,代码行数:10,代码来源:JmvaGuiTest.java

示例8: mainJWATWindowDisplaysCorrectly

import org.fest.swing.fixture.FrameFixture; //导入依赖的package包/类
/**
 * Checks that, on the main JMT window, the user can press the "JWAT"
 * button, and that this will open a new window of type @MainJwatWizard
 * (which is the JWAT frame).
 */
@Test
public void mainJWATWindowDisplaysCorrectly() {
	window.button(new ShortDescriptionButtonMatcher(GraphStartScreen.JWAT_SHORT_DESCRIPTION)).click();
	FrameFixture jwat = WindowFinder.findFrame(MainJwatWizard.class).using(window.robot);
	jwat.show();
}
 
开发者ID:max6cn,项目名称:jmt,代码行数:12,代码来源:JwatGuiTest.java

示例9: mainJMCHWindowDisplaysCorrectly

import org.fest.swing.fixture.FrameFixture; //导入依赖的package包/类
/**
 * Checks that, on the main JMT window, the user can press the "JMCH"
 * button, and that this will open a new window of type @MMQueues
 * (which is the JMCH frame).
 */
@Test
public void mainJMCHWindowDisplaysCorrectly() {
	window.button(new ShortDescriptionButtonMatcher(GraphStartScreen.JMCH_SHORT_DESCRIPTION)).click();
	FrameFixture jmch = WindowFinder.findFrame(MMQueues.class).using(window.robot);
	DialogFixture popup = WindowFinder.findDialog(JDialog.class).using(window.robot);
	popup.button(new TextButtonMatcher("Enter")).click();
	jmch.show();
}
 
开发者ID:max6cn,项目名称:jmt,代码行数:14,代码来源:JmchGuiTest.java

示例10: mainJSIMwizWindowDisplaysCorrectly

import org.fest.swing.fixture.FrameFixture; //导入依赖的package包/类
/**
 * Checks that, on the main JMT window, the user can press the "JSIMwiz"
 * button, and that this will open a new window of type @JSIMMain
 * (which is the JSIMwiz frame).
 */
@Test
public void mainJSIMwizWindowDisplaysCorrectly() {
	window.button(new ShortDescriptionButtonMatcher(GraphStartScreen.JSIM_SHORT_DESCRIPTION)).click();
	FrameFixture jsimWiz = WindowFinder.findFrame(JSIMMain.class).using(window.robot);
	jsimWiz.show();
}
 
开发者ID:max6cn,项目名称:jmt,代码行数:12,代码来源:JSIMwizGuiTest.java

示例11: mainJABAWindowDisplaysCorrectly

import org.fest.swing.fixture.FrameFixture; //导入依赖的package包/类
/**
 * Checks that, on the main JMT window, the user can press the "JABA"
 * button, and that this will open a new window of type @JabaWizard
 * (which is the JABA frame).
 */
@Test
public void mainJABAWindowDisplaysCorrectly() {
	window.button(new ShortDescriptionButtonMatcher(GraphStartScreen.JABA_SHORT_DESCRIPTION)).click();
	FrameFixture jaba = WindowFinder.findFrame(JabaWizard.class).using(window.robot);
	jaba.show();
}
 
开发者ID:max6cn,项目名称:jmt,代码行数:12,代码来源:JabaGuiTest.java

示例12: setUp

import org.fest.swing.fixture.FrameFixture; //导入依赖的package包/类
@Before
public void setUp() {
	window = new FrameFixture(
			GuiActionRunner.execute(new GuiQuery<GraphStartScreen>() {
				protected GraphStartScreen executeInEDT() {
					return new GraphStartScreen();
				}
			}));
}
 
开发者ID:max6cn,项目名称:jmt,代码行数:10,代码来源:MainGuiTest.java

示例13: introWindowDisplaysCorrectly

import org.fest.swing.fixture.FrameFixture; //导入依赖的package包/类
@Test
public void introWindowDisplaysCorrectly() {
	window.show();
	window.button(new TextButtonMatcher("Introduction to JMT")).click();
	FrameFixture intro = WindowFinder.findFrame(PDFViewerBuffer.class).using(window.robot);
	intro.close();		
}
 
开发者ID:max6cn,项目名称:jmt,代码行数:8,代码来源:MainGuiTest.java

示例14: openSession

import org.fest.swing.fixture.FrameFixture; //导入依赖的package包/类
public static int openSession(FrameFixture editorFixture, String name) {
	editorFixture.menuItemWithPath("File", "Open session").click();

	int index = findSession(editorFixture, name);
	doubleClickSessionAndMaximize(editorFixture, index);
	return index;
}
 
开发者ID:mnikliborc,项目名称:clicktrace,代码行数:8,代码来源:SystemTestSteps.java

示例15: findSession

import org.fest.swing.fixture.FrameFixture; //导入依赖的package包/类
private static int findSession(FrameFixture editorFixture, String name) {
	int index = 0;
	int rowCount = editorFixture.dialog().table().rowCount();
	for (; index < rowCount; index++) {
		String value = editorFixture.dialog().table().cell(TableCell.row(index).column(0)).value();
		if (StringUtils.equals(name, value)) {
			return index;
		}
	}
	throw new RuntimeException(String.format("Session '%s' was not found", name));
}
 
开发者ID:mnikliborc,项目名称:clicktrace,代码行数:12,代码来源:SystemTestSteps.java


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