Search in sources :

Example 6 with AnnotatedEmbedderRunner

use of org.jbehave.core.junit.AnnotatedEmbedderRunner in project jbehave-core by jbehave.

the class SpringAnnotatedEmbedderRunnerBehaviour method shouldCreateWithSpringAnnotatedBuilder.

@Test
public void shouldCreateWithSpringAnnotatedBuilder() throws InitializationError {
    AnnotatedEmbedderRunner runner = new SpringAnnotatedEmbedderRunner(RunningWithAnnotatedEmbedderRunner.class);
    assertThat(runner.annotationBuilder(), instanceOf(SpringAnnotationBuilder.class));
}
Also used : AnnotatedEmbedderRunner(org.jbehave.core.junit.AnnotatedEmbedderRunner) SpringAnnotationBuilder(org.jbehave.core.configuration.spring.SpringAnnotationBuilder) Test(org.junit.Test)

Example 7 with AnnotatedEmbedderRunner

use of org.jbehave.core.junit.AnnotatedEmbedderRunner in project jbehave-core by jbehave.

the class PicoAnnotatedEmbedderRunnerBehaviour method shouldCreateWithPicoAnnotatedBuilder.

@Test
public void shouldCreateWithPicoAnnotatedBuilder() throws InitializationError {
    AnnotatedEmbedderRunner runner = new PicoAnnotatedEmbedderRunner(RunningWithAnnotatedEmbedderRunner.class);
    assertThat(runner.annotationBuilder(), instanceOf(PicoAnnotationBuilder.class));
}
Also used : AnnotatedEmbedderRunner(org.jbehave.core.junit.AnnotatedEmbedderRunner) PicoAnnotationBuilder(org.jbehave.core.configuration.pico.PicoAnnotationBuilder) Test(org.junit.Test)

Aggregations

AnnotatedEmbedderRunner (org.jbehave.core.junit.AnnotatedEmbedderRunner)7 Test (org.junit.Test)6 Embeddable (org.jbehave.core.Embeddable)1 GroovyAnnotationBuilder (org.jbehave.core.configuration.groovy.GroovyAnnotationBuilder)1 GuiceAnnotationBuilder (org.jbehave.core.configuration.guice.GuiceAnnotationBuilder)1 NeedleAnnotationBuilder (org.jbehave.core.configuration.needle.NeedleAnnotationBuilder)1 PicoAnnotationBuilder (org.jbehave.core.configuration.pico.PicoAnnotationBuilder)1 SpringAnnotationBuilder (org.jbehave.core.configuration.spring.SpringAnnotationBuilder)1 WeldAnnotationBuilder (org.jbehave.core.configuration.weld.WeldAnnotationBuilder)1 WeldAnnotatedEmbedderRunner (org.jbehave.core.junit.weld.WeldAnnotatedEmbedderRunner)1