Examples of Step


Examples of com.volantis.mcs.migrate.impl.framework.identification.Step

        type.setPathRecogniser(new RegexpPathRecogniser(filename));
        type.addContentIdentifier(
                new DefaultContentIdentifier(version1,
                        new RegexpContentRecogniser(inputData)));
        DefaultGraph graph = new DefaultGraph(version2);
        Step step = new DefaultStep(version1, version2,
                new TestStreamMigrator(inputData, outputData));
        graph.addStep(step);
        type.setGraph(graph);
        resourceRecogniser.addType(type);
        DefaultResourceMigrator resourceMigrator =
View Full Code Here

Examples of com.volantis.mcs.model.path.Step

    public Step removeStep() {
        if (steps == null || steps.isEmpty()) {
            throw new IllegalStateException("Cannot remove step as list is empty");
        }

        Step step = (Step) steps.remove(steps.size() - 1);
        return step;
    }
View Full Code Here

Examples of com.ximpleware.xpath.Step

    //fib = new FastIntBuffer(8);// page size 256 = 2^ 8
    ih = new intHash();
  }
  public String toString(){
    String st = "";
    Step ts = s;
    st = st + fne;   
    if (ts == null)
      return st;
    else
      return st + '/'+ ts;
View Full Code Here

Examples of com.xmlcalabash.model.Step

        if (step.subpipeline().size() == 0) {
            // I need to instantiate an atomic step to replace this declaration in the
            // pipeline I'm about to create.

            Step atomicReplacement = new Step(runtime, step.getNode(),step.getDeclaredType(),step.getName());
            atomicReplacement.setDeclaration(step);

            // TODO: Make sure options and parameters get copied over correctly!

            String wrapper = "XML-CALABASH-GENERATED-WRAPPER-PIPELINE";
            QName ptype = new QName("", "XML-CALABASH-WRAPPER-TYPE");
            // This is an atomic step, manufacture a dummy wrapper pipeline for it.
            DeclareStep pipeline = new DeclareStep(runtime, step.getNode(), wrapper);
            for (Input input : step.inputs()) {
                Input pInput = new Input(runtime, input.getNode());
                pInput.setPort(input.getPort());
                pInput.setPrimary(input.getPrimary());
                pInput.setSequence(input.getSequence());
                pInput.setParameterInput(input.getParameterInput());
                pipeline.addInput(pInput);

                PipeNameBinding pnb = new PipeNameBinding(runtime, input.getNode());
                pnb.setStep(wrapper);
                pnb.setPort(pInput.getPort());
                input.addBinding(pnb);

                atomicReplacement.addInput(input);
            }

            for (Output output : step.outputs()) {
                Output pOutput = new Output(runtime, output.getNode());
                pOutput.setPort(output.getPort());
                pOutput.setPrimary(output.getPrimary());
                pOutput.setSequence(output.getSequence());

                Input pInput = new Input(runtime, output.getNode());
                pInput.setPort("|" + output.getPort());
                pInput.setSequence(output.getSequence());
                pipeline.addInput(pInput);

                PipeNameBinding pnb = new PipeNameBinding(runtime, output.getNode());
                pnb.setStep(step.getName());
                pnb.setPort(output.getPort());
                pInput.addBinding(pnb);

                pipeline.addOutput(pOutput);

                atomicReplacement.addOutput(output);
            }

            pipeline.addStep(atomicReplacement);
            pipeline.setDeclaredType(ptype);
            runtime.declareStep(ptype,pipeline);
View Full Code Here

Examples of cucumber.eclipse.steps.integration.Step

  private PopupMenuFindStepActionDelegate delagate = new PopupMenuFindStepActionDelegate();
 
  @Test
  public void simpleStepMatches() {
   
    Step s = createStep("^I run a test$");
   
    assertEquals(s, delagate.matchSteps("en", Collections.singleton(s), "When I run a test"));
  }
View Full Code Here

Examples of fr.soleil.bossanova.model.Step

    }

    public void actionPerformed(ActionEvent e) {
    int index = table.getSelectedRow();
    if (index >= 0) {
        Step newStep = new Step(null, "", 1);
        sequencer.insertStepAt(newStep,index);
        // We select the new step.
        BossaNovaReferentComponent.getSingleton().getApplication().setSelectedStep(newStep, false);
      StateMachine.getInstance().transitionTo(StateMachine.MODEL_OPEN);
View Full Code Here

Examples of freenet.clients.http.wizardsteps.Step

    } else if (currentStep == WIZARD_STEP.COMPLETE) {
      super.writeTemporaryRedirect(ctx, "Wizard complete", WelcomeToadlet.PATH);
      return;
    }

    Step getStep = steps.get(currentStep);
    PageHelper helper = new PageHelper(ctx, persistFields, currentStep);
    getStep.getStep(request, helper);
    writeHTMLReply(ctx, 200, "OK", helper.getPageOuter().generate());
  }
View Full Code Here

Examples of gherkin.formatter.model.Step

  }

  private static GrMethodCall buildStepDefinitionByStep(@NotNull final GherkinStep step) {
    final GroovyPsiElementFactory factory = GroovyPsiElementFactory.getInstance(step.getProject());

    final Step cucumberStep = new Step(Collections.<Comment>emptyList(), step.getKeyword().getText(), step.getStepName(), 0, null, null);

    SnippetGenerator generator = new SnippetGenerator(new GroovySnippet());
    final String fqnPendingException;
    if (GrCucumberUtil.isCucumber_1_1_orAbove(step)) {
      fqnPendingException = "cucumber.api.PendingException";
View Full Code Here

Examples of it.halfone.parser.Step

    for (int i = 0; i < symbolList.size(); i++) {
      Symbol actualSymbol = symbolList.get(i);
      if (i == 0 || (Symbol.isMetaSymbol(actualSymbol.getType()) == false)) {
        boundary.clear();
        boundary.add(new Step(tokens[i], new ArrayList<Event>()));
        explored.clear();
        successorList.clear();

        while (boundary.isEmpty() == false) {
          Step actual = boundary.remove(0);
          explored.add(actual.getDestination());

          for (int succ : connectionsMap.get(actual.getDestination())) {
            Symbol succSymbol = symbolList.get(succ);
            List<Event> eventList = new ArrayList<Event>(actual.getEventList());
            if (succSymbol.getLikeness() != 0) {
              eventList.add(new LikenessEvent(succSymbol.getLikeness()));
            }
            if (succSymbol.getMarkIndex() != 0) {
              eventList.add(new MarkEvent(succSymbol.getMarkIndex() > 0, Math.abs(succSymbol.getMarkIndex()), succSymbol.getMarkName()));
            }
            if (succSymbol.getType() == Type.CHECK_IN || succSymbol.getType() == Type.CHECK_OUT) {
              eventList.add(new CheckEvent(succSymbol.getType() == Type.CHECK_IN));
            }
            if (succSymbol.getType() == Type.CLOSED_SELF_START || succSymbol.getType() == Type.CLOSED_SELF_END) {
              eventList.add(new LateralStepEvent(closedSelfIdMap.get(succ)));
            }
            if (Symbol.isStackRelated(succSymbol.getType())) {
              String minDepth = "";
              String maxDepth = "";
              switch (succSymbol.getType()) {
              case PUSH:
                minDepth = "1";
                maxDepth = "1";
                break;
              case POP:
                minDepth = "-1";
                maxDepth = "-1";
                break;
              case INFINI_PUSH:
                minDepth = "1";
                maxDepth = "+I";
                eventList.add(new LateralStepEvent(infiniLateralStackMap.get(succ)));
                break;
              case INFINI_POP:
                minDepth = "-I";
                maxDepth = "-1";
                eventList.add(new LateralStepEvent(infiniLateralStackMap.get(succ)));
                break;
              }
              eventList.add(new ChangeDepthEvent(minDepth, maxDepth));
            }
            if ((Symbol.isMetaSymbol(succSymbol.getType()) == false) || succ == symbolList.size() - 1) {
              successorList.add(new Step(tokens[succ], eventList));
            } else {
              Step newStep = new Step(tokens[succ], eventList);
              if (explored.contains(tokens[succ]) == false) {
                boundary.add(newStep);
              }
            }
          }
View Full Code Here

Examples of net.masterthought.cucumber.json.Step

    public void shouldReturnRows() throws IOException {
        List<String> jsonReports = new ArrayList<String>();
        jsonReports.add(getAbsolutePathFromResource("net/masterthought/cucumber/cells.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.getRows()[0], is(Row.class));
    }
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.