|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.eclipse.emf.emfstore.internal.fuzzy.emf.FuzzyUtil
public final class FuzzyUtil
Utility class for different methods used in EMFDataProvider
context.
Field Summary | |
---|---|
static String |
DIFF_FILE
The path to the file containing the TestDiff . |
static String |
FILE_SUFFIX
The file suffix for the files. |
static String |
FUZZY_FOLDER
The main folder containing all files. |
static String |
PROP_PRE
The prefix for all fuzzy properties in the properties file. |
static String |
PROPERTIES_FILE
The path to the properties file. |
static String |
ROOT_FOLDER
The folder where to put the artifacts. |
static String |
RUN_FOLDER
The folder where to store the test runs. |
static String |
TEST_CONFIG_FILE
The file containing the TestConfig s. |
static String |
TEST_CONFIG_PATH
The path to the TEST_CONFIG_FILE. |
Method Summary | |
---|---|
static boolean |
containsConfig(org.eclipse.emf.ecore.resource.Resource resource,
TestConfig config)
Checks if a resource contains a TestConfig . |
static org.eclipse.emf.ecore.resource.Resource |
createResource(String fileNameURI)
Create a new Resource . |
static String |
getProperty(String key,
String defaultValue)
Get a property out of the properties file. |
static ESTestConfig |
getTestConfig(org.eclipse.emf.ecore.resource.Resource resource,
org.junit.runners.model.TestClass testClass)
Searches in the resource for a TestConfig fitting to the given TestClass . |
static TestResult |
getValidTestResult(TestDiff diff)
Get a valid TestResult out of a TestDiff . |
static boolean |
resourceExists(org.eclipse.emf.ecore.resource.Resource resource)
Checks if the resource exists. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String FUZZY_FOLDER
public static final String ROOT_FOLDER
public static final String RUN_FOLDER
public static final String FILE_SUFFIX
public static final String TEST_CONFIG_FILE
TestConfig
s.
public static final String TEST_CONFIG_PATH
public static final String DIFF_FILE
TestDiff
.
public static final String PROPERTIES_FILE
public static final String PROP_PRE
Method Detail |
---|
public static ESTestConfig getTestConfig(org.eclipse.emf.ecore.resource.Resource resource, org.junit.runners.model.TestClass testClass)
TestConfig
fitting to the given TestClass
.
resource
- The resource where to search in.testClass
- The TestClass to which the TestConfig
should fit.
TestConfig
fitting to the TestClass
.public static boolean containsConfig(org.eclipse.emf.ecore.resource.Resource resource, TestConfig config)
TestConfig
.
resource
- The resource where to search in.config
- The TestConfig
to check.
true
if the resource contains the TestConfig
, else false
.public static boolean resourceExists(org.eclipse.emf.ecore.resource.Resource resource)
resource
- The Resource
to check.
true
if the resource exists, false
otherwise.public static org.eclipse.emf.ecore.resource.Resource createResource(String fileNameURI)
Resource
.
fileNameURI
- The uri of the resource.
Resource
.public static TestResult getValidTestResult(TestDiff diff)
TestResult
out of a TestDiff
. Valid means non
null.
diff
- The TestDiff
containing the TestResult
.
TestResult
of the TestDiff
.public static String getProperty(String key, String defaultValue)
key
- The key of the property.defaultValue
- The value if the properties do not contain the key.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |