Examples of Step


Examples of net.masterthought.cucumber.json.Step

    public void shouldReturnRowsWhenNoResultsForStep() throws IOException {
        List<String> jsonReports = new ArrayList<String>();
        jsonReports.add(getAbsolutePathFromResource("net/masterthought/cucumber/with_no_step_results.json"));
        ReportParser reportParser = new ReportParser(jsonReports);
        Feature feature = reportParser.getFeatures().entrySet().iterator().next().getValue().get(0);
        Step step = feature.getElements().get(0).getSteps().get(0);
        feature.processSteps();
        assertThat(step.getName(), is("<div class=\"missing\"><span class=\"step-keyword\">Given  </span><span class=\"step-name\">a \"Big\" customer</span><span class=\"step-duration\"></span><div class=\"step-error-message\"><pre><span class=\"missing\">Result was missing for this step</span></pre></div></div>"));
    }
View Full Code Here

Examples of nexj.core.meta.workflow.Step

   public static Step loadTryCatch(Element element, final TryCatch tryCatch,
      final Activity outerActivity, final XMLMetadataHelper helper, final Metadata metadata,
      final ActivityLoader loader)
   {
      final Pair codeHolder = new Pair(null);
      Step outerStep;

      XMLUtil.withFirstChildElement(element, "Finally", false, new ElementHandler()
      {
         public void handleElement(Element finallyElement)
         {
View Full Code Here

Examples of org.apache.commons.jxpath.ri.compiler.Step

        }

        // Open all containers
        parent = valuePointer(parent);
       
        Step step = steps[currentStep];
        Expression predicates[] = step.getPredicates();

        // Divide and conquer: the process is broken out into
        // four major use cases.
        // 1. Current step has no predicates and
        //    the root is a property owner (e.g. bean or map)
View Full Code Here

Examples of org.apache.commons.jxpath.ri.compiler.Step

     */
    private static NodePointer doStepNoPredicatesPropertyOwner(
                EvalContext context, PropertyOwnerPointer parentPointer,
                Step[] steps, int currentStep)
    {
        Step step = steps[currentStep];
        NodePointer childPointer =
            createChildPointerForStep(parentPointer, step);

        if (!childPointer.isActual()) {
            // The property does not exist - create a null pointer.
View Full Code Here

Examples of org.apache.hadoop.hdfs.server.namenode.startupprogress.Step

   * along.
   */
  long loadFSEdits(EditLogInputStream edits, long expectedStartingTxId,
      StartupOption startOpt, MetaRecoveryContext recovery) throws IOException {
    StartupProgress prog = NameNode.getStartupProgress();
    Step step = createStartupProgressStep(edits);
    prog.beginStep(Phase.LOADING_EDITS, step);
    fsNamesys.writeLock();
    try {
      long startTime = now();
      FSImage.LOG.info("Start loading edits file " + edits.getName());
View Full Code Here

Examples of org.apache.hadoop.hdfs.server.namenode.startupprogress.Step

    long expectedTxId = expectedStartingTxId;
    long numEdits = 0;
    long lastTxId = in.getLastTxId();
    long numTxns = (lastTxId - expectedStartingTxId) + 1;
    StartupProgress prog = NameNode.getStartupProgress();
    Step step = createStartupProgressStep(in);
    prog.setTotal(Phase.LOADING_EDITS, step, numTxns);
    Counter counter = prog.getCounter(Phase.LOADING_EDITS, step);
    long lastLogTime = now();
    long lastInodeId = fsNamesys.getLastInodeId();
   
View Full Code Here

Examples of org.apache.hadoop.hdfs.server.namenode.startupprogress.Step

   */
  private static Step createStartupProgressStep(EditLogInputStream edits)
      throws IOException {
    long length = edits.length();
    String name = edits.getCurrentStreamName();
    return length != -1 ? new Step(name, length) : new Step(name);
  }
View Full Code Here

Examples of org.apache.slide.projector.processor.process.Step

          Element rootElement = document.getRootElement();
          List jobElements = XPath.newInstance("/jobs/job").selectNodes(rootElement);
          List startupJobs = new ArrayList();
          for ( Iterator i = jobElements.iterator(); i.hasNext(); ) {
            Element jobElement = (Element)i.next();
            Step job = new Step();
            job.configure(jobElement);
            String trigger = jobElement.getAttributeValue("trigger");
            if ( trigger == null || trigger.equals(STARTUP) ) {
              if ( !installedJobNames.contains(STARTUP_IDENTIFIER+job.getName()) ) {
                startupJobs.add(job);
                installedJobNames.add(job.getName());
              }
            } else if ( trigger.equals(REQUEST) ) {
              requestJobs.add(job);
            } else if ( trigger.equals(SESSION) ) {
              sessionJobs.add(job);
            }
          }
          // Note: starting jobs after reading all, to avoid writing to configuration files while reading...
          for ( Iterator i = startupJobs.iterator(); i.hasNext(); ) {
            Step job = (Step)i.next();
            if ( job.getName().startsWith(STARTUP_IDENTIFIER) ) {
              context.setStep(job.getName());
            } else {
              context.setStep(STARTUP_IDENTIFIER+job.getName());
            }
            launchJob(job, context);
            if ( !restoreRunningJobs ) {
              Projector.getRepository().subscribe("Update", jobsUri, 0,
                new Subscriber() {
View Full Code Here

Examples of org.apache.sling.scripting.xproc.xpl.api.Step

 
  @Override
  public void addChild(XplElement child) {
    super.addChild(child);
    if (child instanceof Step) {
      Step stepChild = (Step) child;
      stepChild.setEnv(this.getEnv());
      subpipeline.add(stepChild);
    }
  }
View Full Code Here

Examples of org.apache.sling.scripting.xproc.xpl.api.Step

  }
 
  public void testBuild() throws Exception {   
    String xplPath = "/xpl/html.xpl";   
    XplBuilder builder = new XplBuilder();
    Step pipeline = builder.build(getReaderFromPath(xplPath));
    String strControl = toString(getClass().getResourceAsStream(xplPath));
    XMLAssert.assertXMLEqual(strControl, pipeline.toString());
  }
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.