Package com.canoo.webtest.engine

Examples of com.canoo.webtest.engine.StepExecutionException


       
        final String mode = getMode().toLowerCase();
        final String[] allowedModes = {DIFF_MODE_AUTO, DIFF_MODE_BIN, DIFF_MODE_TEXT, DIFF_MODE_REGEXPERLINE};
        if (!ArrayUtils.contains(allowedModes, mode))
        {
            throw new StepExecutionException("Unallowed diff mode >" + getMode() + "<. "
                + "Allowed modes are "
                + ArrayUtils.toString(allowedModes)
                + ".", this);
        }
    }
View Full Code Here


    try {
      final Object object = Class.forName(customInitializerClassName).newInstance();
      final IConnectionInitializer customInitializer = (IConnectionInitializer) object;
      customInitializer.initializeConnection(context.getConfig());
    } catch (final ConnectionInitializationException e) {
      final Throwable throwme = new StepExecutionException("ConnectionInitializer raised exception: " + e.getMessage(), fStep);
      throw (RuntimeException) throwme.fillInStackTrace();
    } catch (final Exception e) {
      LOG.info("Root exception from Connection Initializer", e);
      final Throwable throwme = new StepExecutionException("Exception raised while trying to create custom ConnectionInitializer <"
        + customInitializerClassName + "> / Exception: " + e, fStep);
      throw (RuntimeException) throwme.fillInStackTrace();
    }
  }
View Full Code Here

TOP

Related Classes of com.canoo.webtest.engine.StepExecutionException

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.