@Test public void testWrongActionExecutor() throws Exception { try { runWithScenario(new EasyTravelCustomer("http://localhost", "http://localhost", "false")); fail("Should catch exception here"); } catch (UnsupportedOperationException e) { TestHelpers.assertContains(e, "MobileDevice", "not supported"); } }
@Test public void testInstantiate() { TestHelpers.assumeCanUseDisplay(); Display display = new Display(); // skip test if we do not have a graphical Display Assume.assumeNotNull(Display.getCurrent()); LOGGER.info("Constants: " + Constants.Colors.WHITE); LOGGER.info("Cursors: " + Constants.Cursors.ARROW); LOGGER.info("Modules: " + Constants.Modules.B2B_BACKEND); LOGGER.info("Images: " + Constants.Images.FANCY_MENU_BUTTON_BG); LOGGER.info("InternalMessages: " + Constants.InternalMessages.MENU_ACTION_WAS_NULL); LOGGER.info("HTML: " + Constants.Html.BEGIN_BOLD); LOGGER.info("Misc: " + Constants.Misc.CMD_PARAM_ADK_AGENT_LIB); LOGGER.info("Procedures: " + Constants.Procedures.ANT_ID); LOGGER.info("ConfigurationXML: " + Constants.ConfigurationXml.ATTRIBUTE_ENABLED); LOGGER.info("CmdArguments: " + Constants.CmdArguments.NO_AUTOSTART); LOGGER.info("REST: " + Constants.REST.PING); LOGGER.info("REST: " + RESTConstants.AGENT_FOUND); display.dispose(); }