Search in sources :

Example 1 with WeldBootstrap

use of org.jbehave.core.configuration.weld.WeldBootstrap in project jbehave-core by jbehave.

the class WeldAnnotatedPathRunner method annotationBuilder.

public AnnotationBuilder annotationBuilder() {
    if (container == null) {
        container = new WeldBootstrap();
        container.initialize();
    }
    return container.findAnnotationBuilder(testClass());
}
Also used : WeldBootstrap(org.jbehave.core.configuration.weld.WeldBootstrap)

Example 2 with WeldBootstrap

use of org.jbehave.core.configuration.weld.WeldBootstrap in project jbehave-core by jbehave.

the class WeldAnnotationBuilderBehaviour method createBuilder.

private AnnotationBuilder createBuilder(Class<?> type) {
    WeldBootstrap bootstrap = new WeldBootstrap();
    bootstrap.initialize();
    AnnotationBuilder builder = bootstrap.findAnnotationBuilder(type);
    assertThat(builder, is(AnnotationBuilder.class));
    return builder;
}
Also used : AnnotationBuilder(org.jbehave.core.configuration.AnnotationBuilder) WeldBootstrap(org.jbehave.core.configuration.weld.WeldBootstrap)

Aggregations

WeldBootstrap (org.jbehave.core.configuration.weld.WeldBootstrap)2 AnnotationBuilder (org.jbehave.core.configuration.AnnotationBuilder)1