Examples of run()


Examples of org.springframework.boot.cli.command.test.TestCommand.run()

  @Test
  public void noFile() throws Exception {
    TestCommand command = new TestCommand();
    this.thrown.expect(RuntimeException.class);
    this.thrown.expectMessage("Can't find nothing.groovy");
    command.run("nothing.groovy");
  }

  @Test
  public void appAndTestsInOneFile() throws Exception {
    String output = this.cli.test("book_and_tests.groovy");
View Full Code Here

Examples of org.springframework.ide.eclipse.config.ui.actions.CollapseNodeAction.run()

    expand.run();
    assertTrue(innerNode.getExpanded());

    CollapseNodeAction collapse = new CollapseNodeAction(treeViewer, cEditor.getXmlProcessor());
    treeViewer.getTree().setSelection(innerNode);
    collapse.run();
    assertFalse(innerNode.getExpanded());
    assertTrue(root.getExpanded());
  }

  public void testRootNode() throws Exception {
View Full Code Here

Examples of org.springframework.ide.eclipse.config.ui.actions.DeleteNodeAction.run()

    insert.run();
    assertEquals(1, root.getItemCount());

    IDOMElement node = (IDOMElement) root.getItem(0).getData();
    DeleteNodeAction delete = new DeleteNodeAction(textView, node);
    delete.run();
    assertEquals(0, root.getItemCount());
  }

  public void testLargeFileDeletion() throws Exception {
    cEditor = openFileInEditor("src/many-beans.xml");
View Full Code Here

Examples of org.springframework.ide.eclipse.config.ui.actions.ExpandNodeAction.run()

    root.setExpanded(true);
    assertFalse(innerNode.getExpanded());

    ExpandNodeAction expand = new ExpandNodeAction(treeViewer, cEditor.getXmlProcessor());
    treeViewer.getTree().setSelection(innerNode);
    expand.run();
    assertTrue(innerNode.getExpanded());

    CollapseNodeAction collapse = new CollapseNodeAction(treeViewer, cEditor.getXmlProcessor());
    treeViewer.getTree().setSelection(innerNode);
    collapse.run();
View Full Code Here

Examples of org.springframework.ide.eclipse.config.ui.actions.InsertNodeAction.run()

    TreeItem root = treeViewer.getTree().getItem(0);
    assertEquals(0, root.getItemCount());

    InsertNodeAction insert = new InsertNodeAction(treeViewer, cEditor.getXmlProcessor(), textView, "bean");
    treeViewer.getTree().setSelection(root);
    insert.run();
    assertEquals(1, root.getItemCount());

    IDOMElement node = (IDOMElement) root.getItem(0).getData();
    DeleteNodeAction delete = new DeleteNodeAction(textView, node);
    delete.run();
View Full Code Here

Examples of org.springframework.ide.eclipse.config.ui.actions.LowerNodeAction.run()

    TreeViewer treeViewer = (TreeViewer) page.getMasterPart().getViewer();
    TreeItem root = treeViewer.getTree().getItem(0);

    LowerNodeAction lower = new LowerNodeAction(treeViewer, cEditor.getXmlProcessor(), textView);
    treeViewer.getTree().setSelection(root.getItem(0));
    lower.run();
    assertEquals(references, model.getReferenceCountForEdit());

    treeViewer.getTree().setSelection(root.getItem(0));
    lower.run();
    assertEquals(references, model.getReferenceCountForEdit());
View Full Code Here

Examples of org.springframework.ide.eclipse.config.ui.actions.RaiseNodeAction.run()

    upButton.addSelectionListener(new SelectionAdapter() {
      @Override
      public void widgetSelected(SelectionEvent e) {
        StructuredTextViewer textView = getConfigEditor().getTextViewer();
        Action action = new RaiseNodeAction(treeViewer, xmlProcessor, textView);
        action.run();
      }
    });
    upButton.setEnabled(false);

    downButton = toolkit.createButton(client,
View Full Code Here

Examples of org.springframework.jdbc.object.SqlFunction.run()

  public void addCategory(DocumentCategory category) {
    SqlFunction sqlFunction = new SqlFunction(getDataSource(),
                  "select category_id from category");
    sqlFunction.compile();
    int categoryId = sqlFunction.run()+1;
    category.setId(categoryId);

    getJdbcTemplate().update(
      "insert into category (category_id,category_name) values(?,?)",
      new Object[] {new Integer(category.getId()), category.getName()},
View Full Code Here

Examples of org.springframework.rules.closure.ElementGenerator.run()

   * @return The objects that match, or a empty collection if none match
   */
  public Collection findAll(Iterator it, Constraint constraint) {
    ElementGenerator finder = new IteratorTemplate(it).findAll(constraint);
    final Collection results = new ArrayList();
    finder.run(new Block() {
      protected void handle(Object element) {
        results.add(element);
      }
    });
    return results;
View Full Code Here

Examples of org.springframework.yarn.boot.app.YarnContainerClusterApplication.run()

      appProperties.setProperty("spring.yarn.internal.ContainerClusterApplication.applicationId",
          appId);
      appProperties.setProperty("spring.yarn.internal.ContainerClusterApplication.clusterId",
          versionId);
      app.appProperties(appProperties);
      String info = app.run(new String[0]);
      handleOutput(info);
    }

    public OptionSpec<String> getApplicationIdOption() {
      return applicationIdOption;
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.