public class StorageManager extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
StorageManager.TestsOnDisk |
| Constructor and Description |
|---|
StorageManager() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
clean()
Delete all CTG files
|
boolean |
createNewTmpFolders()
Create a new tmp folder for this CTG session
|
void |
deleteAllOldTmpFolders() |
protected String |
extractClassName(File base,
File target)
Example:
base = /some/where/in/file/system
target = /some/where/in/file/system/com/name/of/a/package/AClass.java
We want "com.name.of.a.package.AClass" as a result
|
List<StorageManager.TestsOnDisk> |
gatherGeneratedTestsOnDisk()
Not only we need the generated JUnit files, but also the statistics
on their execution.
|
static File |
getBestTestFolder() |
static File |
getBestTestFolder(File baseDir) |
static Project |
getDatabaseProject()
Get current representation of the test cases in the database
|
static File |
getSeedInFolder() |
File |
getTmpLogs() |
File |
getTmpPools() |
File |
getTmpReports() |
File |
getTmpSeeds() |
File |
getTmpTests() |
boolean |
isStorageOk() |
String |
mergeAndCommitChanges(ProjectStaticData current,
String[] cuts)
Compare the results of this CTG run with what was in
the database.
|
public static File getBestTestFolder()
public static File getSeedInFolder()
public boolean createNewTmpFolders()
public void deleteAllOldTmpFolders()
public boolean clean()
public String mergeAndCommitChanges(ProjectStaticData current, String[] cuts) throws NullPointerException
NullPointerExceptionpublic List<StorageManager.TestsOnDisk> gatherGeneratedTestsOnDisk()
protected String extractClassName(File base, File target)
public static Project getDatabaseProject()
public File getTmpLogs()
public File getTmpReports()
public File getTmpTests()
public File getTmpPools()
public File getTmpSeeds()
public boolean isStorageOk()
Copyright © 2010–2016 EvoSuite. All rights reserved.