本文整理汇总了Java中org.fest.swing.fixture.FrameFixture.show方法的典型用法代码示例。如果您正苦于以下问题:Java FrameFixture.show方法的具体用法?Java FrameFixture.show怎么用?Java FrameFixture.show使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.fest.swing.fixture.FrameFixture
的用法示例。
在下文中一共展示了FrameFixture.show方法的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: 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();
}
示例7: 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();
}
示例8: 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();
}
示例9: 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();
}
示例10: setUp
import org.fest.swing.fixture.FrameFixture; //导入方法依赖的package包/类
@Before
public void setUp() {
injector = loadInjector();
mainView = injector.getInstance(MainView.class);
editorFixture = new FrameFixture(mainView.getFrame());
editorFixture.show();
editorFixture.maximize();
activeSession = injector.getInstance(ActiveSession.class);
props = injector.getInstance(UserProperties.class);
prepareTestDir();
deleteUserProperties();
}
示例11: onSetUp
import org.fest.swing.fixture.FrameFixture; //导入方法依赖的package包/类
@Override
protected void onSetUp() {
beautiFrame = new FrameFixture(robot(), createNewEditor());
beautiFrame.show();
beautiFrame.resizeTo(new Dimension(1224, 786));
JTabbedPaneFixture f = beautiFrame.tabbedPane();
beauti = (Beauti) f.target;
doc = beauti.doc;
}
示例12: setUp
import org.fest.swing.fixture.FrameFixture; //导入方法依赖的package包/类
@Before
public void setUp() {
browser = createNewBrowser();
PreferencesManager.loadSettings(browser);
window = new FrameFixture(browser);
window.show();
}
示例13: setup
import org.fest.swing.fixture.FrameFixture; //导入方法依赖的package包/类
@Before
public void setup() throws Exception {
MockitoAnnotations.initMocks(this);
when(configurator.getViewEngine()).thenReturn(viewEngine);
window = new FrameFixture(loginWindow.getFrame());
window.show(FRAME_DIMENSION);
}
示例14: shouldSetAlbumValues
import org.fest.swing.fixture.FrameFixture; //导入方法依赖的package包/类
@Test
public void shouldSetAlbumValues() throws Exception {
//Avoid running in Linux since is not working properly
if(!Environment.isLinux()){
metadatas.add(metadata);
when(metadataHelper.createMetadataAlbumVaues()).thenReturn(metadataAlbumValues);
when(controlEngine.get(Model.METADATA)).thenReturn(metadatas);
metadataDialog = new MetadataDialog(mainWindow, controlEngineConfigurator, message);
metadataDialog.setMetadataHelper(metadataHelper);
frame.add(metadataDialog.getContentPane());
window = new FrameFixture(frame);
window.show();
window.resizeTo(new Dimension(WIDTH,HEIGHT));
window.textBox(ARTIST_INPUT).enterText(ARTIST);
window.textBox(ALBUM_INPUT).enterText(ALBUM);
window.textBox(GENRE_INPUT).enterText(GENRE);
window.textBox(YEAR_INPUT).enterText(YEAR);
window.textBox(TRACKS_INPUT).enterText(TRACKS);
window.textBox(CD_INPUT).enterText(CD);
window.textBox(CDS_INPUT).enterText(CDS);
window.button(APPLY_BUTTON_NAME).click();
verify(metadataAlbumValues).setArtist(ARTIST);
verify(metadataAlbumValues).setAlbum(ALBUM);
verify(metadataAlbumValues).setGenre(GENRE);
verify(metadataAlbumValues).setYear(YEAR);
verify(metadataAlbumValues).setTracks(TRACKS);
verify(metadataAlbumValues).setCd(CD);
verify(metadataAlbumValues).setCds(CDS);
verify(controlEngine).fireEvent(Events.READY_TO_APPLY, new ValueEvent<MetadataAlbumValues>(metadataAlbumValues));
}
}
示例15: onSetUp
import org.fest.swing.fixture.FrameFixture; //导入方法依赖的package包/类
protected void onSetUp() {
beautiFrame = new FrameFixture(robot(), createNewEditor());
beautiFrame.show();
beautiFrame.resizeTo(new Dimension(1224, 786));
JTabbedPaneFixture f = beautiFrame.tabbedPane();
beauti = (Beauti) f.target;
doc = beauti.doc;
}