Package org.jbehave.core.junit.guice

Source Code of org.jbehave.core.junit.guice.GuiceAnnotatedEmbedderRunner

package org.jbehave.core.junit.guice;

import org.jbehave.core.configuration.AnnotationBuilder;
import org.jbehave.core.configuration.guice.GuiceAnnotationBuilder;
import org.jbehave.core.junit.AnnotatedEmbedderRunner;
import org.junit.runners.model.InitializationError;

/**
* AnnotatedEmbedderRunner that uses {@link GuiceAnnotationBuilder}.
*/
public class GuiceAnnotatedEmbedderRunner extends AnnotatedEmbedderRunner {

    private GuiceAnnotationBuilder annotationBuilder;

    public GuiceAnnotatedEmbedderRunner(Class<?> testClass) throws InitializationError {
        super(testClass);
        this.annotationBuilder = new GuiceAnnotationBuilder(testClass());
    }

    public AnnotationBuilder annotationBuilder() {
        return annotationBuilder;
    }

}
TOP

Related Classes of org.jbehave.core.junit.guice.GuiceAnnotatedEmbedderRunner

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.