@PrepareForTest(value={com.github.searls.jasmine.runner.CreatesRunner.class,org.apache.commons.io.FileUtils.class})
public class CreatesRunnerTest
extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
SPEC_RUNNER_GENERATOR |
| Constructor and Description |
|---|
CreatesRunnerTest() |
| Modifier and Type | Method and Description |
|---|---|
void |
before() |
void |
fakeOutDirectories() |
void |
stubConstructionOfExistingRunnerFile() |
void |
stubConstructionOfHtmlGenerator() |
void |
whenExistingRunnerFailsToLoadThenWriteNewOne() |
void |
whenRunnerDoesNotExistThenCreateNewRunner() |
void |
whenRunnerExistsAndDiffersThenWriteNewOne() |
void |
whenRunnerExistsAndIsSameThenDoNothing() |
public static final String SPEC_RUNNER_GENERATOR
public void before()
public void fakeOutDirectories()
public void stubConstructionOfExistingRunnerFile()
throws Exception
Exceptionpublic void stubConstructionOfHtmlGenerator()
throws Exception
Exceptionpublic void whenRunnerDoesNotExistThenCreateNewRunner()
throws Exception
Exceptionpublic void whenRunnerExistsAndDiffersThenWriteNewOne()
throws IOException
IOExceptionpublic void whenRunnerExistsAndIsSameThenDoNothing()
throws IOException
IOExceptionpublic void whenExistingRunnerFailsToLoadThenWriteNewOne()
throws IOException
IOExceptionCopyright © 2016. All rights reserved.