@Test public void testSetupJBehaveEmbedderShouldConfigureInstanceStepsFactory() { Configuration configuration = Mockito.mock(Configuration.class); given(configurationFactory.create(testCase)).willReturn(configuration); underTest.setupJBehaveEmbedder(testCase); verify(instanceStepsFactoryCreator).createForTestCase(configuration, testCase); }
public void setupJBehaveEmbedder(final JBehaveTestCase testCase) { embedder.embedderControls().doVerboseFailures(true).doGenerateViewAfterStories(false).useThreads(1); embedder.useEmbedderMonitor(new NullEmbedderMonitor()); Configuration configuration = configurationFactory.create(testCase); InstanceStepsFactory instanceStepsFactory = instanceStepsFactoryCreator.createForTestCase(configuration, testCase); embedder.useStepsFactory(instanceStepsFactory); embedder.useConfiguration(configuration); }
GepardEmbedder { public void setupJBehaveEmbedder(final JBehaveTestCase testCase) { embedder.embedderControls().doVerboseFailures(true).doGenerateViewAfterStories(false).useThreads(1); embedder.useEmbedderMonitor(new NullEmbedderMonitor()); Configuration configuration = configurationFactory.create(testCase); InstanceStepsFactory instanceStepsFactory = instanceStepsFactoryCreator.createForTestCase(configuration, testCase); embedder.useStepsFactory(instanceStepsFactory); embedder.useConfiguration(configuration); } }
GepardEmbedder { public void setupJBehaveEmbedder(final JBehaveTestCase testCase) { embedder.embedderControls().doVerboseFailures(true).doGenerateViewAfterStories(false).useThreads(1); embedder.useEmbedderMonitor(new NullEmbedderMonitor()); Configuration configuration = configurationFactory.create(testCase); InstanceStepsFactory instanceStepsFactory = instanceStepsFactoryCreator.createForTestCase(configuration, testCase); embedder.useStepsFactory(instanceStepsFactory); embedder.useConfiguration(configuration); } GepardEmbedder(final Embedder embedder, final ConfigurationFactory configurationFactory,
            final InstanceStepsFactoryCreator instanceStepsFactoryCreator); }
GepardEmbedder { public void setupJBehaveEmbedder(final JBehaveTestCase testCase) { embedder.embedderControls().doVerboseFailures(true).doGenerateViewAfterStories(false).useThreads(1); embedder.useEmbedderMonitor(new NullEmbedderMonitor()); Configuration configuration = configurationFactory.create(testCase); InstanceStepsFactory instanceStepsFactory = instanceStepsFactoryCreator.createForTestCase(configuration, testCase); embedder.useStepsFactory(instanceStepsFactory); embedder.useConfiguration(configuration); } GepardEmbedder(final Embedder embedder, final ConfigurationFactory configurationFactory,
            final InstanceStepsFactoryCreator instanceStepsFactoryCreator); void setupJBehaveEmbedder(final JBehaveTestCase testCase); void runTest(final String storyPath); }
GepardEmbedder { public void setupJBehaveEmbedder(final JBehaveTestCase testCase) { embedder.embedderControls().doVerboseFailures(true).doGenerateViewAfterStories(false).useThreads(1); embedder.useEmbedderMonitor(new NullEmbedderMonitor()); Configuration configuration = configurationFactory.create(testCase); InstanceStepsFactory instanceStepsFactory = instanceStepsFactoryCreator.createForTestCase(configuration, testCase); embedder.useStepsFactory(instanceStepsFactory); embedder.useConfiguration(configuration); } GepardEmbedder(final Embedder embedder, final ConfigurationFactory configurationFactory,
            final InstanceStepsFactoryCreator instanceStepsFactoryCreator); void setupJBehaveEmbedder(final JBehaveTestCase testCase); void runTest(final String storyPath);  }