Package com.puppetlabs.geppetto.validation

Examples of com.puppetlabs.geppetto.validation.ValidationService.validate()


    options.setCheckModuleSemantics(true);
    options.setCheckReferences(true);
    options.setFileType(FileType.PUPPET_ROOT);
    ByteArrayOutputStream stream = new ByteArrayOutputStream();

    BuildResult buildResult = vs.validate(chain, root, options, null, SubMonitor.convert(null));
    getDependencyGraphProducer().produceGraph(
      null, "Module dependencies for graphTestData", null, stream, buildResult, chain);

    assertTrue("Stream should contain data", stream.size() > 10);
View Full Code Here


    options.setFileType(FileType.PUPPET_ROOT);

    // Write the dot to a file:
    File outputFolder = TestDataProvider.getTestOutputDir();
    FileOutputStream dotStream = new FileOutputStream(new File(outputFolder, "forgeGraphSVG.dot"));
    BuildResult buildResult = vs.validate(chain, root, options, null, SubMonitor.convert(null));
    getDependencyGraphProducer().produceGraph(
      null, "Forge DefaultModules Dependencies", null, dotStream, buildResult, chain);

    // produce SVG
    SVGProducer svgProducer = getSVGProducer();
View Full Code Here

    // Write the dot to a file:
    File outputFolder = TestDataProvider.getTestOutputDir();
    FileOutputStream dotStream = new FileOutputStream(new File(outputFolder, "karelGraphSVG.dot"));

    BuildResult buildResult = vs.validate(chain, root, options, null, SubMonitor.convert(null));
    getDependencyGraphProducer().produceGraph(
      null, "Karel DefaultModules Dependencies", null, dotStream, buildResult, chain);

    // produce SVG
    SVGProducer svgProducer = getSVGProducer();
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.