public class Scaffolding extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
EXECUTOR_SERVICE |
| Constructor and Description |
|---|
Scaffolding() |
| Modifier and Type | Method and Description |
|---|---|
String |
getBeforeAndAfterMethods(String name,
boolean wasSecurityException,
List<ExecutionResult> results)
Get the code of methods for @BeforeClass, @Before, @AfterClass and
|
static String |
getFileName(String testName) |
protected static String |
getFooter() |
protected static String |
getHeader(String name,
List<ExecutionResult> results,
boolean wasSecurityException) |
static String |
getScaffoldingFileContent(String testName,
List<ExecutionResult> results,
boolean wasSecurityException)
Return full JUnit code for scaffolding file for the give test
|
static List<String> |
getScaffoldingImports(boolean wasSecurityException,
List<ExecutionResult> results)
Return all classes for which we need an import statement
|
public static final String EXECUTOR_SERVICE
public static String getScaffoldingFileContent(String testName, List<ExecutionResult> results, boolean wasSecurityException)
testName - protected static String getFooter()
protected static String getHeader(String name, List<ExecutionResult> results, boolean wasSecurityException)
public static String getFileName(String testName) throws IllegalArgumentException
IllegalArgumentExceptionpublic static List<String> getScaffoldingImports(boolean wasSecurityException, List<ExecutionResult> results)
wasSecurityException - results - public String getBeforeAndAfterMethods(String name, boolean wasSecurityException, List<ExecutionResult> results)
In those methods, the EvoSuite framework for running the generated test cases is handled (e.g., use of customized SecurityManager and runtime bytecode replacement)
Copyright © 2010–2017 EvoSuite. All rights reserved.