本文整理汇总了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();
}
示例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();
}
示例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();
}
示例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();
}
示例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);
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
示例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();
}
}));
}
示例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();
}
示例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;
}
示例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));
}