Examples of StartPage


Examples of com.motability.document.pageobjects.StartPage

    private DocumentTemplateListPage listPage;

   @When("^creating a Document Template with name '(.*)'$")
    public void creating_a_Document_Template(String templateName) throws Throwable {
  StartPage startPage = globalScenario.getStartPage();
  DocumentTemplateListPage listPage = startPage.openDocumentTemplatePage();
  assertTrue("The Document Template Listing Page was not properly loaded", listPage.isDisplayed());

  createDocumentTemplate(templateName, listPage);

  assertTrue("Document show page was not displayed", showPage.isDisplayed());
View Full Code Here

Examples of com.motability.document.pageobjects.StartPage

       docListPage.documentTemplateWithNameExists(templateName));
    }

    @Given("^the following document templates exists:$")
    public void the_following_document_templates_exists(List<DocumentTemplate> templates) throws Throwable {
  StartPage startPage = globalScenario.getStartPage();
  DocumentTemplateListPage listPage = startPage.openDocumentTemplatePage();

  for (DocumentTemplate documentTemplate : templates) {
      createDocumentTemplate(documentTemplate.getTemplateName(), listPage);
  }
    }
View Full Code Here

Examples of com.motability.document.pageobjects.StartPage

  }
    }

    @Given("^that there exists a document template with name '(.*)'$")
    public void that_there_exists_a_document_template_with_name(String templateName) throws Throwable {
  StartPage startPage = globalScenario.getStartPage();
  DocumentTemplateListPage listPage = startPage.openDocumentTemplatePage();
  createDocumentTemplate(templateName, listPage);
    }
View Full Code Here

Examples of com.motability.document.pageobjects.StartPage

    public void afterScenario() {
  //TODO cleanup database...
    }

    public StartPage getStartPage() {
  StartPage startPage = PageFactory.initElements(webDriver, StartPage.class);
  return startPage;
    }
View Full Code Here

Examples of gui.StartPage

    }
   
   
    public static void main(String[] args) {
        setLookAndFeel();
        StartPage game = new StartPage();
        game.setVisible(true);
       
    }
View Full Code Here

Examples of org.graylog2.restclient.models.Startpage

    @Inject
    private UserService userService;

    public Result redirect() {
        Startpage startpage = currentUser().getStartpage();

        Call call;
        if (startpage == null || StartpageRouteHelper.getCall(startpage) == null) {
            call = routes.SearchController.globalSearch();
        } else {
View Full Code Here

Examples of org.graylog2.restclient.models.Startpage

    }

    public Result set(String pageType, String id) {
        Startpage.Type type = Startpage.Type.valueOf(pageType.toUpperCase());

        final boolean success = currentUser().setStartpage(new Startpage(type, id));
        if (success) {
            flash("success", "Configured new startpage for your user.");
        } else {
            flash("error", "Could not set new startpage for your user.");
        }
View Full Code Here

Examples of org.graylog2.restclient.models.Startpage

            return ok(views.html.dashboards.show.render(currentUser, bc, dashboard));
        } catch (APIException e) {
            if (e.getHttpCode() == NOT_FOUND || e.getHttpCode() == FORBIDDEN) {
                String msg = "The requested dashboard was deleted and no longer exists.";
                final Startpage startpage = currentUser.getStartpage();
                if (startpage != null) {
                    if (new Startpage(Startpage.Type.DASHBOARD, id).equals(startpage)) {
                        msg += " Please reset your startpage.";
                    }
                }
                flash("error", msg);
                return redirect(routes.DashboardsController.index());
View Full Code Here

Examples of org.graylog2.restclient.models.Startpage

        } catch (IOException e) {
            return status(504, views.html.errors.error.render(ApiClient.ERROR_MSG_IO, e, request()));
        } catch (APIException e) {
            if (e.getHttpCode() == NOT_FOUND || e.getHttpCode() == FORBIDDEN) {
                String msg = "The requested stream was deleted and no longer exists.";
                final Startpage startpage = currentUser().getStartpage();
                if (startpage != null) {
                    if (new Startpage(Startpage.Type.STREAM, streamId).equals(startpage)) {
                        msg += " Please reset your startpage.";
                    }
                }
                flash("error", msg);
                return redirect(routes.StreamsController.index());
View Full Code Here

Examples of org.graylog2.restclient.models.Startpage

        if (startpage == null || startpage.type == null || startpage.id == null) {
            return null;
        }

        try {
            return new Startpage(Startpage.Type.valueOf(startpage.type.toUpperCase()), startpage.id);
        } catch(IllegalArgumentException e) {
            return null;
        }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.