本文整理汇总了Java中org.loadui.testfx.exceptions.NoNodesFoundException类的典型用法代码示例。如果您正苦于以下问题:Java NoNodesFoundException类的具体用法?Java NoNodesFoundException怎么用?Java NoNodesFoundException使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
NoNodesFoundException类属于org.loadui.testfx.exceptions包,在下文中一共展示了NoNodesFoundException类的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: findQuiet
import org.loadui.testfx.exceptions.NoNodesFoundException; //导入依赖的package包/类
public <T extends Node> Optional<T> findQuiet(String selectorOrText) {
try {
return Optional.of(GuiTest.find(selectorOrText));
} catch (NoNodesFoundException | NoNodesVisibleException e) {
return Optional.empty();
}
}
示例2: existsQuiet
import org.loadui.testfx.exceptions.NoNodesFoundException; //导入依赖的package包/类
public boolean existsQuiet(String selector) {
try {
return GuiTest.exists(selector);
} catch (NoNodesFoundException | NoNodesVisibleException e) {
return false;
}
}
示例3: indexColumnNotExisting
import org.loadui.testfx.exceptions.NoNodesFoundException; //导入依赖的package包/类
@Test(expected = NoNodesFoundException.class)
public void indexColumnNotExisting() throws Exception {
populate();
find(hasText("5"));
}
示例4: duplicateIsMissing
import org.loadui.testfx.exceptions.NoNodesFoundException; //导入依赖的package包/类
@Test(expected = NoNodesFoundException.class)
public void duplicateIsMissing() throws Exception {
populate();
rightClick("temp.pdf");
assertFalse(exists(DefaultI18nContext.getInstance().i18n("Duplicate")));
}
示例5: moveDownIsMissing
import org.loadui.testfx.exceptions.NoNodesFoundException; //导入依赖的package包/类
@Test(expected = NoNodesFoundException.class)
public void moveDownIsMissing() throws Exception {
populate();
rightClick("temp.pdf");
find(DefaultI18nContext.getInstance().i18n("Move Down"));
}
示例6: moveUpIsMissing
import org.loadui.testfx.exceptions.NoNodesFoundException; //导入依赖的package包/类
@Test(expected = NoNodesFoundException.class)
public void moveUpIsMissing() throws Exception {
populate();
rightClick("temp.pdf");
find(DefaultI18nContext.getInstance().i18n("Move Up"));
}
示例7: moveBottomIsMissing
import org.loadui.testfx.exceptions.NoNodesFoundException; //导入依赖的package包/类
@Test(expected = NoNodesFoundException.class)
public void moveBottomIsMissing() throws Exception {
populate();
rightClick("temp.pdf");
find(DefaultI18nContext.getInstance().i18n("Move to Bottom"));
}
示例8: moveTopIsMissing
import org.loadui.testfx.exceptions.NoNodesFoundException; //导入依赖的package包/类
@Test(expected = NoNodesFoundException.class)
public void moveTopIsMissing() throws Exception {
populate();
rightClick("temp.pdf");
find(DefaultI18nContext.getInstance().i18n("Move to Top"));
}
示例9: moveDownIsMissing
import org.loadui.testfx.exceptions.NoNodesFoundException; //导入依赖的package包/类
@Test(expected = NoNodesFoundException.class)
public void moveDownIsMissing() {
find(b -> b instanceof MoveUpButton);
}
示例10: moveUpIsMissing
import org.loadui.testfx.exceptions.NoNodesFoundException; //导入依赖的package包/类
@Test(expected = NoNodesFoundException.class)
public void moveUpIsMissing() {
find(b -> b instanceof MoveDownButton);
}