Package com.technophobia.substeps.model.exception

Examples of com.technophobia.substeps.model.exception.SubstepsConfigurationException


                newNode = existingNode;

                if (existingNode.hasChild(parentNode)) {

                    throw new SubstepsConfigurationException("The order is invalid as "
                            + existingNode.getInitialisationClass().getName() + " must come before and after "
                            + parentNode.getInitialisationClass().getName());
                }

                parentNode.addChild(existingNode);
View Full Code Here


            final ExampleParameter parametersForSteps, final boolean throwExceptionIfUnableToBuildMethodArgs,
            final Set<String> tags, final int depth) {

        if (steps == null || steps.isEmpty()) {

            throw new SubstepsConfigurationException("There are no steps for " + scenarioDescription + " or a substep");
        }

        final List<StepNode> substeps = Lists.newArrayList();

        for (final Step step : steps) {
View Full Code Here

            final String msg = "line: [" + step.getParameterLine() + "] in [" + step.getSource()
                    + "] matches step implementation method: [" + problem.getMethod().toString()
                    + "] AND matches a sub step definition: [" + substepsParent.getParent().getParameterLine()
                    + "] in [" + substepsParent.getSubStepFile() + "]";

            throw new SubstepsConfigurationException(msg);

        }

        final SubstepNode substepNode = build(scenarioDescription, substepsParent.getSteps(), subStepsMapLocal,
                substepsParent, parametersForSubSteps, throwExceptionIfUnableToBuildMethodArgs, tags, depth);
View Full Code Here

        } else {

            log.error("Unable to locate an implementation for the step: " + step.toDebugString());

            throw new SubstepsConfigurationException("Unable to locate an implementation for the step: "
                    + step.toDebugString() + " in " + step.getSource());
        }
    }
View Full Code Here

            for (final StepImplementation si : list) {
                log.error("impl: regex[" + si.getValue() + "] in " + si.getImplementedIn().getSimpleName() + "."
                        + si.getMethod().getName());
            }

            throw new SubstepsConfigurationException("Ambiguity resolving step to impl: " + step.toDebugString());
        }

        if (list != null && !list.isEmpty()) {
            impl = list.get(0);
        }
View Full Code Here

                    Collections.<String> emptySet(), depth);
            scenarioNode.getResult().setFailedToParse(t);

            if (parameters.isFailParseErrorsImmediately()) {

                throw new SubstepsConfigurationException(t);
            }
        }

        return scenarioNode;
    }
View Full Code Here

TOP

Related Classes of com.technophobia.substeps.model.exception.SubstepsConfigurationException

Copyright © 2018 www.massapicom. 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.