@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
Exception
public void stubConstructionOfHtmlGenerator() throws Exception
Exception
public void whenRunnerDoesNotExistThenCreateNewRunner() throws Exception
Exception
public void whenRunnerExistsAndDiffersThenWriteNewOne() throws IOException
IOException
public void whenRunnerExistsAndIsSameThenDoNothing() throws IOException
IOException
public void whenExistingRunnerFailsToLoadThenWriteNewOne() throws IOException
IOException
Copyright © 2016. All rights reserved.