Skip to content

Commit

Permalink
Removed redundant test
Browse files Browse the repository at this point in the history
  • Loading branch information
wakaleo committed Nov 9, 2015
1 parent 3e05bb0 commit 1b62b2c
Showing 1 changed file with 1 addition and 18 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,11 @@
import org.junit.Rule;
import org.junit.Test;
import org.junit.runner.notification.RunNotifier;
import org.junit.runners.model.InitializationError;
import org.mockito.Mock;
import org.mockito.MockitoAnnotations;

import java.io.File;
import java.io.IOException;

import static org.mockito.Matchers.any;
import static org.mockito.Mockito.*;
import static org.mockito.Mockito.verify;

/**
* Managing the WebDriver instance during a test run The instance should be
Expand Down Expand Up @@ -51,17 +47,4 @@ public void a_test_reporter_can_subscribe_to_the_runner() throws Exception {

verify(mockReporter).generateReportFor(any(TestOutcome.class), any(TestOutcomes.class));
}


@Test
public void the_runner_should_tell_the_reporter_what_directory_to_use()
throws InitializationError, IOException {

SerenityRunner runner = new ThucydidesRunner(AnnotatedSingleTestScenario.class);
runner.subscribeReporter(mockReporter);

runner.run(new RunNotifier());

verify(mockReporter,atLeast(1)).setOutputDirectory(any(File.class));
}
}

0 comments on commit 1b62b2c

Please sign in to comment.