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


Java FrameFixture.show方法代码示例

本文整理汇总了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();
}
 
开发者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: 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

示例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();
}
 
开发者ID:max6cn,项目名称:jmt,代码行数:14,代码来源:JmchGuiTest.java

示例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();
}
 
开发者ID:max6cn,项目名称:jmt,代码行数:12,代码来源:JSIMwizGuiTest.java

示例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();
}
 
开发者ID:max6cn,项目名称:jmt,代码行数:12,代码来源:JabaGuiTest.java

示例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();
}
 
开发者ID:mnikliborc,项目名称:clicktrace,代码行数:15,代码来源:AbstractSystemTest.java

示例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;
}
 
开发者ID:CompEvol,项目名称:beast2,代码行数:10,代码来源:BeautiBase.java

示例12: setUp

import org.fest.swing.fixture.FrameFixture; //导入方法依赖的package包/类
@Before
public void setUp() {
  browser = createNewBrowser();
  PreferencesManager.loadSettings(browser);
  window = new FrameFixture(browser);
  window.show();
}
 
开发者ID:nezda,项目名称:yawni,代码行数:8,代码来源:BrowserFESTTest.java

示例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);
}
 
开发者ID:josdem,项目名称:jmetadata,代码行数:8,代码来源:TestLoginWindow.java

示例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));
	}
}
 
开发者ID:josdem,项目名称:jmetadata,代码行数:35,代码来源:TestMetadataDialog.java

示例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;
}
 
开发者ID:rbouckaert,项目名称:YABBY,代码行数:9,代码来源:BeautiBase.java


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