Examples of Step


Examples of apigen.adt.Step

  }

  private void genSetterSteps(Iterator<Step> steps, List<Step> parentPath,
      String arg) {
    if (steps.hasNext()) {
      Step step = steps.next();
      switch (step.getType()) {
      case Step.ARG:
        print("ATsetArgument((ATermAppl)");
        break;
      case Step.ELEM:
        print("ATreplace((ATermList)");
        break;
      case Step.TAIL:
        print("ATreplaceTail((ATermList)");
        break;
      }
      print(genGetterSteps(parentPath.iterator(), "arg"));
      if (step.getType() == Step.TAIL) {
        print(", (ATermList)");
      } else {
        print(", (ATerm)");
      }
      parentPath.add(step);
      genSetterSteps(steps, parentPath, arg);
      print(", " + step.getIndex() + ")");
    } else {
      print(arg);
    }
  }
View Full Code Here

Examples of ca.jimr.gae.profiler.MiniProfiler.Step

  }

  private static JsonToken createToken(final String disks, final String user,
      final float cost, String description) throws InvalidKeyException {

    Step step = MiniProfiler.step("API.createToken");
    try {

      // Current time and signing algorithm
      final Calendar cal = Calendar.getInstance();
      final HmacSHA256Signer signer = new HmacSHA256Signer(ISSUER, null,
          SIGNING_KEY.getBytes());

      // Configure JSON token
      final JsonToken token = new JsonToken(signer);
      token.setAudience("Google");
      token.setParam("typ", "google/payments/inapp/item/v1");
      token.setIssuedAt(new Instant(cal.getTimeInMillis()));
      token.setExpiration(new Instant(cal.getTimeInMillis() + 60000L));

      // Configure request object
      final JsonObject request = new JsonObject();
      request.addProperty("name", "Battle Disks");
      request.addProperty("description", description);
      request.addProperty("price", cost);
      request.addProperty("currencyCode", "USD");
      request.addProperty("sellerData", user);

      final JsonObject payload = token.getPayloadAsJsonObject();
      payload.add("request", request);

      return token;
    } finally {
      step.close();
    }
  }
View Full Code Here

Examples of com.agiletec.plugins.jpcontentworkflow.aps.system.services.workflow.model.Step

    List<Step> steps = action.getSteps();
    assertEquals(4, steps.size());
    assertEquals("step1", steps.get(0).getCode());
    assertEquals("step2", steps.get(1).getCode());
    assertEquals("step3", steps.get(2).getCode());
    Step step = steps.get(3);
    assertEquals("step4", step.getCode());
    assertEquals("step4", step.getCode());
    assertEquals("Step 4", step.getDescr());
    assertEquals("supervisor", step.getRole());
  }
View Full Code Here

Examples of com.canoo.webtest.steps.Step

        final Context context = getContext();
        applyTableFilterIfNeeded(context);
        applyExtractionIfNeeded(context);

        for (final Iterator iter = steps.iterator(); iter.hasNext();) {
            final Step step = (Step) iter.next();
            executeContainedStep(step);
    }
        final WebClientContext.StoredResponses srcResponses = context.getResponses();
        final Page actualPage = context.getCurrentResponse();
        final WebResponse actualResponse = actualPage.getWebResponse();

        LOG.debug("Processig reference file: " + getReferenceFile());
      WebClientContext.StoredResponses referenceResponses = preProcessFiles(getReferenceFile(), context);
      if (isReadFiltered()) {
            LOG.debug("Applying filter on reference file too");
            context.restoreResponses(referenceResponses);
            for (final Iterator iter = steps.iterator(); iter.hasNext();) {
                final Step step = (Step) iter.next();
                step.execute();
        }
            referenceResponses = context.getResponses();
          context.restoreResponses(srcResponses);
      }
View Full Code Here

Examples of com.cloud.vm.ItWorkVO.Step

        throw new ConcurrentOperationException("Unable to change the state of " + vm);
    }

    protected <T extends VMInstanceVO> boolean changeState(T vm, Event event, Long hostId, ItWorkVO work, Step step) throws NoTransitionException {
        // FIXME: We should do this better.
        Step previousStep = work.getStep();
        _workDao.updateStep(work, step);
        boolean result = false;
        try {
            result = stateTransitTo(vm, event, hostId);
            return result;
View Full Code Here

Examples of com.gramant.jtr.log.Step

    public void addElementResult(Element element, TestResult result, List<Step> steps) throws IOException {
        element.setAttribute("end", DATE_FORMAT.format(new Date()));
        element.setAttribute("result", result.name());
        for (int i = 0; i < steps.size(); i++) {
            Element stepElement = new Element("step");
            Step step = steps.get(i);
            if (step.getAction() != null) {
                Element actionElement = new Element("action");
                actionElement.setText(step.getAction());
                stepElement.addContent(actionElement);
            }
            if (step.getResult() != null) {
                for (int j = 0; j < step.getResult().size(); j++) {
                    Element actionElement = new Element("result");
                    actionElement.setText(step.getResult().get(j).toString());
                    stepElement.addContent(actionElement);
                }
            }
            if (step.getErrorResult() != null) {
                for (int j = 0; j < step.getErrorResult().size(); j++) {
                    Element actionElement = new Element("error");
                    actionElement.setText(step.getErrorResult().get(j).toString());
                    stepElement.addContent(actionElement);
                }
            }
            if (step.getScreenShot() != null) {
                Element scrElement = new Element("screen-shot");
                scrElement.setText(step.getScreenShot().getPath());
                scrElement.setAttribute("title", step.getScreenShot().getTitle());
                stepElement.addContent(scrElement);
            }
            element.addContent(stepElement);
        }
        writeSuiteFile();
View Full Code Here

Examples of com.opensymphony.workflow.spi.Step

    WorkflowDescriptor descriptor = workflow.getWorkflowDescriptor(OsWorkflowTemplate.this.workflowName);

    List stepDescriptors = new ArrayList();

    for (int i = 0; i < steps.size(); i++) {
      Step step = (Step) steps.get(i);
      stepDescriptors.add(descriptor.getStep(step.getStepId()));
    }

    return Collections.unmodifiableList(stepDescriptors);
  }
View Full Code Here

Examples of com.redhat.ceylon.compiler.java.test.fordebug.Tracer.Step

            MethodEntry entry = tracer.methodEntry().classFilter(mainClass).methodFilter("main").result(HandlerResult.SUSPEND).enable();
            // resume until we hit that, then disable it
            tracer.resume();
            entry.disable();
            // now log everything within DefaultedParameters.ceylon
            Step step = tracer.step().within(sourceName).log().enable();
            // and also listen out for when we exit main()
            MethodExit exit = tracer.methodExit().classFilter(mainClass).methodFilter("main").result(HandlerResult.SUSPEND).enable();
            // once we've exited main() disable the step breakpoint
            tracer.resume();
            if (tracer.isVmAlive()) {
                step.disable();
                tracer.resume();
            }
            System.err.println(tracer.getTrace());
            assertSameTrace(tracer, traceFile);
        }
View Full Code Here

Examples of com.technophobia.substeps.model.Step

       
        for (final ParentStep p : syntax.getSortedRootSubSteps()){
           
            // is there an executionnodeusage that is going to match ?
           
            final Step parent = p.getParent();
           
            if (thereIsNotAStepThatMatchesThisPattern(parent.getPattern(), calledExecutionNodes)){
                buf.append("\t")
                    .append( parent.getLine())
                    .append( " @ ")
                    .append(parent.getSource().getName())
                    .append( ":")
                    .append(parent.getSourceLineNumber())
                    .append("\n");
            }
        }
        if (buf.length()> 0){
            log.warn("** Substep definitions not called in current substep execution scope...\n\n" + buf.toString());
View Full Code Here

Examples of com.tinkerpop.gremlin.process.Step

        if (startStep.startAssignableTo(Vertex.class, Edge.class)) {
            final Element element = ((StartStep<?>) startStep).getStart();
            final String label = startStep.getLabel();
            TraversalHelper.removeStep(startStep, traversal);
            if (TraversalHelper.isLabeled(label)) {
                final Step identityStep = new IdentityStep(traversal);
                identityStep.setLabel(label);
                TraversalHelper.insertStep(identityStep, 0, traversal);
            }
            TraversalHelper.insertStep(new HasStep(traversal, new HasContainer(T.id, Compare.eq, element.id())), 0, traversal);
            TraversalHelper.insertStep(new TinkerGraphStep<>(traversal, element.getClass()), 0, traversal);
        }
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.