Package org.jbehave.core.junit

Examples of org.jbehave.core.junit.AnnotatedEmbedderRunner


public class NeedleAnnotatedEmbedderRunnerBehaviour {

  @Test
  public void shouldCreateWithGuiceAnnotatedBuilder() throws InitializationError {
    AnnotatedEmbedderRunner runner = new NeedleAnnotatedEmbedderRunner(RunningWithAnnotatedEmbedderRunner.class);
    assertThat(runner.annotationBuilder(), instanceOf(NeedleAnnotationBuilder.class));
  }
View Full Code Here


public class GuiceAnnotatedEmbedderRunnerBehaviour {

    @Test
    public void shouldCreateWithGuiceAnnotatedBuilder() throws InitializationError{
        AnnotatedEmbedderRunner runner = new GuiceAnnotatedEmbedderRunner(RunningWithAnnotatedEmbedderRunner.class);
        assertThat(runner.annotationBuilder(), instanceOf(GuiceAnnotationBuilder.class));
    }
View Full Code Here

public class SpringAnnotatedEmbedderRunnerBehaviour {

    @Test
    public void shouldCreateWithSpringAnnotatedBuilder() throws InitializationError{
        AnnotatedEmbedderRunner runner = new SpringAnnotatedEmbedderRunner(RunningWithAnnotatedEmbedderRunner.class);
        assertThat(runner.annotationBuilder(), instanceOf(SpringAnnotationBuilder.class));
    }
View Full Code Here

public class GroovyAnnotatedEmbedderRunnerBehaviour {

    @Test
    public void shouldCreateWithSpringAnnotatedBuilder() throws InitializationError{
        AnnotatedEmbedderRunner runner = new GroovyAnnotatedEmbedderRunner(RunningWithAnnotatedEmbedderRunner.class);
        assertThat(runner.annotationBuilder(), instanceOf(GroovyAnnotationBuilder.class));
    }
View Full Code Here

    public void runStoriesWithAnnotatedEmbedderRunner(List<String> classNames) {
        EmbedderClassLoader classLoader = classLoader();
        for (String className : classNames) {
            embedderMonitor.runningWithAnnotatedEmbedderRunner(className);
            AnnotatedEmbedderRunner runner = AnnotatedEmbedderUtils.annotatedEmbedderRunner(className, classLoader);
            try {
                Object annotatedInstance = runner.createTest();
                if (annotatedInstance instanceof Embeddable) {
                    ((Embeddable) annotatedInstance).run();
                } else {
                    embedderMonitor.annotatedInstanceNotOfType(annotatedInstance, Embeddable.class);
                }
View Full Code Here

public class PicoAnnotatedEmbedderRunnerBehaviour {

    @Test
    public void shouldCreateWithPicoAnnotatedBuilder() throws InitializationError{
        AnnotatedEmbedderRunner runner = new PicoAnnotatedEmbedderRunner(RunningWithAnnotatedEmbedderRunner.class);
        assertThat(runner.annotationBuilder(), instanceOf(PicoAnnotationBuilder.class));
    }
View Full Code Here

public class WeldAnnotatedEmbedderRunnerBehaviour {

    @Test
    public void shouldCreateWithGuiceAnnotatedBuilder() throws InitializationError{
        AnnotatedEmbedderRunner runner = new WeldAnnotatedEmbedderRunner(RunningWithAnnotatedEmbedderRunner.class);
   
        assertThat(runner.annotationBuilder(), instanceOf(WeldAnnotationBuilder.class));
    }
View Full Code Here

TOP

Related Classes of org.jbehave.core.junit.AnnotatedEmbedderRunner

Copyright © 2018 www.massapicom. 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.