Package org.concordion.api.extension

Examples of org.concordion.api.extension.ConcordionExtension


      throw new RuntimeException("Cannot instantiate extension '" + className + "'", e);
    } catch (IllegalAccessException e) {
      throw new RuntimeException("Extension '" + className + "' or constructor are inaccessible", e);
    }

    ConcordionExtension extension;
    try {
      extension = (ConcordionExtension) extensionObject;
    } catch (ClassCastException e) {
      try {
        ConcordionExtensionFactory factory = (ConcordionExtensionFactory) extensionObject;
        extension = factory.createExtension();
      } catch (ClassCastException e1) {
        String message = String.format("Extension class '%s' must implement '%s' or '%s'", className,
            ConcordionExtension.class.getName(), ConcordionExtensionFactory.class.getName());
        throw new RuntimeException(message);
      }
    }
    extension.addTo(this);
  }
View Full Code Here


      }
    } catch (IOException e) {
      throw new RuntimeException(e);
    }
   
    ConcordionExtension screenshotExtension = new ScreenshotExtension().setScreenshotTaker(camera).setScreenshotOnAssertionSuccess(false)
        .setScreenshotOnThrowable(false).setMaxWidth(400);
   
    BreadcrumbCssRemovedConcordionBuilder concordionBuilder = new BreadcrumbCssRemovedConcordionBuilder();
    concordionBuilder.withEmbeddedCSS("");
    screenshotExtension.addTo(concordionBuilder);
    new BootsrapCssExtension().addTo(concordionBuilder);
    new StaticRessourceExtension().addTo(concordionBuilder);
   
    for (final IntegrationtestBase integrationtestBase: tests){
      ResultSummary resultSummary;
View Full Code Here

TOP

Related Classes of org.concordion.api.extension.ConcordionExtension

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.