Class EugeniaTest
- java.lang.Object
-
- org.eclipse.epsilon.workflow.tasks.eugenia.EugeniaTest
-
- Direct Known Subclasses:
EugeniaEmfInRootTest
,EugeniaExtraModelsTest
,EugeniaOptionalAttributeTest
,EugeniaRegressionTest
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.
-
-
Field Summary
Fields Modifier and Type Field Description protected static String[]
CASE_EXTENSIONS
protected static String
RES_PREFIX
-
Constructor Summary
Constructors Constructor Description EugeniaTest(String caseName)
Creates a new instance of this class.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
copyCaseFiles()
void
copyIntoProject(String path)
void
createTestProject()
void
deleteTestProject()
String
getCaseName()
org.eclipse.core.resources.IProject
getTestProject()
void
runAntTarget(String target)
-
-
-
Field Detail
-
CASE_EXTENSIONS
protected static final String[] CASE_EXTENSIONS
-
RES_PREFIX
protected static final String RES_PREFIX
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
EugeniaTest
public EugeniaTest(String caseName)
Creates a new instance of this class.- Parameters:
caseName
- Name of the subfolder inresources
to be copied to the test project. Please make sure that all the files in that folder follow the patterncasename.ext
, wherecasename
is the name of the subfolder, andext
is one of the extensions inCASE_EXTENSIONS
.
-
-
Method Detail
-
getCaseName
public String getCaseName()
-
getTestProject
public org.eclipse.core.resources.IProject getTestProject()
-
-