Package com.canoo.webtest.interfaces

Examples of com.canoo.webtest.interfaces.IConnectionInitializer


        allocateAndInit(customInitializerClassName);
    }

    static void allocateAndInit(final String customInitializerClassName) {
        IConnectionInitializer customInitializer;
        try {
            customInitializer = (IConnectionInitializer) Class.forName(customInitializerClassName).newInstance();
        } catch (Exception e) {
            LOG.info("exception instantiating Connection Initializer " + e.getMessage(), e);
            throw (RuntimeException) e;
        }
        try {
            customInitializer.initializeConnection(sConfig);
            LOG.info("custom connection initializer set-up.");
        } catch (ConnectionInitializationException e) {
            LOG.error(e.getMessage(), e);
        }
    }
View Full Code Here


  protected void invokeCustomInitializer(final Context context, final String customInitializerClassName) {
    LOG.info("Using custom initializer: " + customInitializerClassName);
    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);
View Full Code Here

TOP

Related Classes of com.canoo.webtest.interfaces.IConnectionInitializer

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.