use of com.github.noraui.application.page.Page.PageElement in project NoraUi by NoraUi.
the class StepUT method testFormatMessageNullPageElement.
@Test
public void testFormatMessageNullPageElement() {
try {
final DemoPage demoPage = (DemoPage) Page.getInstance(DEMO_PAGE_NAME);
final PageElement pageElement = demoPage.getPageElementByKey("fake");
Messages.format("Message %s in %s.", pageElement, demoPage.getApplication());
} catch (final TechnicalException e) {
Assert.assertEquals("TechnicalException found", "Technical problem in the code Messages.formatMessage(String templateMessage, String... args) in NoraUi.", e.getMessage());
}
}
Aggregations