Examples of Action


Examples of nexj.core.meta.Action

                     sActionName = sActionName.substring(i + 1);
                  }

                  XMLMetadataHelper.validateName(sActionName);

                  Action action = new Action(sActionName, sGroupName);

                  action.setEvent(event);
                  loadAction(actionElement, action);
                  event.addAction(action);
               }
            });
         }
View Full Code Here

Examples of nl.topicus.onderwijs.dashboard.datatypes.hudson.Action

  @Override
  public Integer getValue() {
    class UnitTestComparator implements Comparator<Build> {
      @Override
      public int compare(Build o1, Build o2) {
        Action test1 = getTestReport(o1);
        Action test2 = getTestReport(o2);

        if (test1 == null && test2 == null)
          return 0;
        if (test1 == null)
          return 1;
        if (test2 == null)
          return -1;
        return test1.getTotalCount() - test2.getTotalCount();
      }

    }
    List<Build> builds = service.getBuilds(project);

    if (builds.isEmpty())
      return null;

    Build buildWithMaxUnitTests = Collections.max(builds,
        new UnitTestComparator());

    Action testReport = getTestReport(buildWithMaxUnitTests);
    return testReport == null ? null : testReport.getTotalCount();
  }
View Full Code Here

Examples of nu.fw.jeti.plugins.drawing.shapes.actions.Action

   *
   * @return action that should be undone<br>
   * <tt>null</tt> if there are no more actions to undo
   */
  public synchronized Action undo() {
    Action a = null;
    if (!doneStack.empty()) {
      a = doneStack.pop();
      undoneStack.add(a);
    }
    return a;
View Full Code Here

Examples of org.allspice.parser.parsetable.Action

   */
  protected void addActions(ParseTable pt, LR1State st,
      Map<String, LR1State> lalr1gotos) throws StateConflict {
    for(LR1Item item: st.item) {
      if (item.core.pos >= item.core.r.rhs.size()) {
        final Action action ;
        if (item.core.r.equals(startRule)) {
          action = new AcceptAction(startRule) ;
        }
        else {
          action = new ReduceAction(item.core.r);
View Full Code Here

Examples of org.andrewberman.ui.Action

    zSortedItems = new ArrayList<MenuItem>(1);
  }
 
  public MenuItem setAction(Object object, String method)
  {
    action = new Action(object, method);
    if (shortcut != null)
      shortcut.action = action;
    menu.layout();
    return this;
  }
View Full Code Here

Examples of org.antlr.v4.codegen.model.Action

    blk.ops = ops;
    return blk;
  }

  @Override
  public List<SrcOp> action(ActionAST ast) { return list(new Action(this, ast)); }
View Full Code Here

Examples of org.apache.ambari.server.state.action.Action


  @Test
  public void testJobProgressUpdates() throws Exception {
    long currentTime = 1;
    Action job = createNewJob(1, "JobNameFoo", currentTime);
    verifyNewJob(job, currentTime);

    verifyProgressUpdate(job, ++currentTime);
    verifyProgressUpdate(job, ++currentTime);
    verifyProgressUpdate(job, ++currentTime);
View Full Code Here

Examples of org.apache.axiom.testutils.concurrent.Action

        super(staxImpl);
    }

    protected void runTest() throws Throwable {
        final XMLInputFactory factory = staxImpl.getDialect().makeThreadSafe(staxImpl.newNormalizedXMLInputFactory());
        ConcurrentTestUtils.testThreadSafety(new Action() {
            public void execute() throws Exception {
                String text = String.valueOf((int)(Math.random() * 10000));
                String xml = "<root>" + text + "</root>";
                XMLStreamReader reader = factory.createXMLStreamReader(new StringReader(xml));
                assertEquals(XMLStreamReader.START_DOCUMENT, reader.getEventType());
View Full Code Here

Examples of org.apache.axis.message.addressing.Action

        {
            LOG.debug( MSG.getMessage( Keys.NO_ADDR_HDR ) );
            return null;
        }
        // TODO: we should probably be throwing a fault if there's no wsa:Action header
        Action headerAction = addrHeaders.getAction();
        if ( headerAction == null )
        {
            LOG.debug( MSG.getMessage( Keys.NO_ACTION_IN_ADDR_HDR ) );
            return null;
        }
        String action = headerAction.toString();
        LOG.debug( MSG.getMessage( Keys.GET_ACTION_FROM_ADDR_HDR, action ) );
        return action;
    }
View Full Code Here

Examples of org.apache.axis2.java.security.action.Action

            System.out.println("Enabling the default Java Security Manager");
            System.setSecurityManager(new SecurityManager());
        }

        // Run test WITHOUT AccessController.doPrivileged wrapper
        Action dp = new Action("public/public.txt");
        MorePermission mp = new MorePermission(dp, false);
        LessPermission lp = new LessPermission(mp, false);
        lp.takeAction();

        // Disable security manager if it is enabled by this testcsae
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.