Package org.jbehave.examples.core

Source Code of org.jbehave.examples.core.CustomCoreStories

package org.jbehave.examples.core;

import java.util.Properties;

import org.jbehave.core.configuration.Configuration;
import org.jbehave.core.reporters.FreemarkerViewGenerator;

public class CustomCoreStories extends CoreStories {

    @Override
    public Configuration configuration() {
        Configuration configuration = super.configuration();
        Properties viewResources = new Properties();
        viewResources.put("reports", "ftl/custom-reports.ftl");
        configuration.useViewGenerator(new FreemarkerViewGenerator(this.getClass()));
        return configuration.useStoryReporterBuilder(configuration.storyReporterBuilder()
                .withViewResources(viewResources)
                .withFormats(CustomHtmlOutput.FORMAT));
    }

}
TOP

Related Classes of org.jbehave.examples.core.CustomCoreStories

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.