Examples of FeatureNode


Examples of com.technophobia.substeps.execution.node.FeatureNode

        final RootNode rootNode = runExecutionTest(feature, tags, substeps, notifier, failures);

        // check the rootNode tree is in the state we expect
        Assert.assertThat(rootNode.getResult().getResult(), is(ExecutionResult.FAILED));

        final FeatureNode featureNode = rootNode.getChildren().get(0);
        final ScenarioNode<?> scenarioNode = featureNode.getChildren().get(0);

        Assert.assertThat(scenarioNode.getResult().getResult(), is(ExecutionResult.PARSE_FAILURE));

        verify(notifier, times(1)).onNodeFailed(eq(scenarioNode), argThat(any(UnimplementedStepException.class)));
View Full Code Here

Examples of com.technophobia.substeps.execution.node.FeatureNode

        final RootNode rootNode = runExecutionTest(feature, tags, substeps, notifier, failures);

        // check the rootNode tree is in the state we expect
        Assert.assertThat(rootNode.getResult().getResult(), is(ExecutionResult.FAILED));

        final FeatureNode featureNode = rootNode.getChildren().get(0);
        final ScenarioNode<?> scenarioNode = featureNode.getChildren().get(0);

        Assert.assertThat(scenarioNode.getResult().getResult(), is(ExecutionResult.PARSE_FAILURE));

        verify(notifier, times(1)).onNodeFailed(eq(scenarioNode), argThat(any(SubstepsConfigurationException.class)));
View Full Code Here

Examples of com.technophobia.substeps.execution.node.FeatureNode

        System.out.println("\n\n\n\n\n*************\n\n" + rootNode.toDebugString());

        // check the rootNode tree is in the state we expect
        Assert.assertThat(rootNode.getResult().getResult(), is(ExecutionResult.FAILED));

        final FeatureNode featureNode = rootNode.getChildren().get(0);

        final OutlineScenarioNode scenarioOutlineNode2 = (OutlineScenarioNode) featureNode.getChildren().get(1);

        Assert.assertThat(scenarioOutlineNode2.getResult().getResult(), is(ExecutionResult.PARSE_FAILURE));

        verify(notifier, times(1)).onNodeFailed(eq(scenarioOutlineNode2),
                argThat(any(SubstepsConfigurationException.class)));
View Full Code Here

Examples of com.technophobia.substeps.execution.node.FeatureNode

    @Test
    public void testScenarioOutlineFailsWithNoExamples() {

        final OutlineScenarioNode outlineNode = new OutlineScenarioNode("scenarioName",
                Collections.<OutlineScenarioRowNode> emptyList(), Collections.<String> emptySet(), 2);
        final FeatureNode featureNode = new FeatureNode(new Feature("test feature", "file"),
                Collections.<ScenarioNode<?>> singletonList(outlineNode), Collections.<String> emptySet());
        final ExecutionNode rootNode = new RootNode("Description", Collections.singletonList(featureNode));

        final ExecutionNodeRunner runner = new ExecutionNodeRunner();
View Full Code Here

Examples of com.technophobia.substeps.execution.node.FeatureNode

            }
        }

        final Feature feature = new Feature(featureFile.getName(), featureFile.getSourceFile().getName());

        final FeatureNode featureNode = new FeatureNode(feature, scenarioNodes, tags);

        featureNode.setFileUri(featureFile.getSourceFile().getAbsolutePath());
        featureNode.setLineNumber(0);

        return featureNode;
    }
View Full Code Here

Examples of com.technophobia.substeps.execution.node.FeatureNode

    }

    private FeatureNode createFeature(String name, String fileName) {

        final Feature feature = new Feature(name, fileName);
        final FeatureNode featureNode = new FeatureNode(feature,
                Collections.<ScenarioNode<?>> singletonList(createScenario(SCENARIO_NAME)),
                Collections.<String> emptySet());
        featureNodes.add(featureNode);

        return featureNode;
View Full Code Here

Examples of com.technophobia.substeps.execution.node.FeatureNode

        List<FeatureNode> features = Lists.newArrayListWithExpectedSize(parameters.getFeatureFileList().size());

        for (final FeatureFile featureFile : parameters.getFeatureFileList()) {

            FeatureNode featureNode = featureNodeBuilder.build(featureFile);
            if (featureNode != null) {

                features.add(featureNode);
            }
        }
View Full Code Here

Examples of de.FeatureModellingTool.InfoExplorer2.FeatureNode

            Object node = tp.getLastPathComponent();

            if ((node == null) || (!(node instanceof FeatureNode)))return;

            FeatureNode featureNode = (FeatureNode)node;
           
            if (featureNode.getNodeType() != FeatureNode.NODE_TYPE_NORMAL)
          return;
           
            String featureId = featureNode.getFeature().getID();
            if (featureId == null)
          return;
            if (elementLocator != null){
          if (e.getClickCount() == 1)
              elementLocator.locateInCurrentView(featureId);
View Full Code Here

Examples of de.FeatureModellingTool.InfoExplorer2.FeatureNode

            Object node = tp.getLastPathComponent();

            if ((node == null) || (!(node instanceof FeatureNode)))return;

            FeatureNode featureNode = (FeatureNode)node;
           
            if (featureNode.getNodeType() != FeatureNode.NODE_TYPE_NORMAL)
          return;
           
            String featureId = featureNode.getFeature().getID();
            if (featureId == null)
          return;
            if (elementLocator != null){
                elementLocator.locateInCurrentView(featureId);
            }           
View Full Code Here

Examples of de.bwaldvogel.liblinear.FeatureNode

      i++;
    }
    FeatureNode[] xarray = new FeatureNode[featureSet.size()];
    int k = 0;
    for (XNode x : featureSet) {
      xarray[k++] = new FeatureNode(x.getIndex(), x.getValue());
    }


    if (decision.getKBestList().getK() == 1) {
      decision.getKBestList().add((int) Linear.predict(model, xarray));
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.