public class EugeniaTest extends Object
Base class for all the tests of the Eugenia Ant task.
Note: all tests based on this class must run as JUnit Plug-In tests, not as regular tests, and the ui.workbench product needs to be run. We need a working, open workbench for these tests.
Modifier and Type | Field and Description |
---|---|
protected static String[] |
CASE_EXTENSIONS |
protected static String |
RES_PREFIX |
Constructor and Description |
---|
EugeniaTest(String caseName)
Creates a new instance of this class.
|
Modifier and Type | Method and Description |
---|---|
void |
copyCaseFiles() |
void |
copyIntoProject(String path) |
void |
createTestProject() |
void |
deleteTestProject() |
String |
getCaseName() |
org.eclipse.core.resources.IProject |
getTestProject() |
void |
runAntTarget(String target) |
protected static final String[] CASE_EXTENSIONS
protected static final String RES_PREFIX
public EugeniaTest(String caseName)
caseName
- Name of the subfolder in resources
to be copied
to the test project. Please make sure that all the files in
that folder follow the pattern casename.ext
,
where casename
is the name of the subfolder, and
ext
is one of the extensions in
CASE_EXTENSIONS
.public String getCaseName()
public org.eclipse.core.resources.IProject getTestProject()
Copyright © 2020. All rights reserved.