Class EugeniaTest
- java.lang.Object
-
- org.eclipse.epsilon.workflow.tasks.eugenia.EugeniaTest
-
- Direct Known Subclasses:
EugeniaEmfInRootTest
,EugeniaExtraModelsTest
,EugeniaOptionalAttributeTest
,EugeniaRegressionTest
public class EugeniaTest extends java.lang.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 java.lang.String[]
CASE_EXTENSIONS
protected static java.lang.String
RES_PREFIX
-
Constructor Summary
Constructors Constructor Description EugeniaTest(java.lang.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(java.lang.String path)
void
createTestProject()
void
deleteTestProject()
java.lang.String
getCaseName()
org.eclipse.core.resources.IProject
getTestProject()
void
runAntTarget(java.lang.String target)
-
-
-
Field Detail
-
CASE_EXTENSIONS
protected static final java.lang.String[] CASE_EXTENSIONS
-
RES_PREFIX
protected static final java.lang.String RES_PREFIX
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
EugeniaTest
public EugeniaTest(java.lang.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 java.lang.String getCaseName()
-
getTestProject
public org.eclipse.core.resources.IProject getTestProject()
-
createTestProject
public void createTestProject() throws java.lang.Exception
- Throws:
java.lang.Exception
-
deleteTestProject
public void deleteTestProject() throws java.lang.Exception
- Throws:
java.lang.Exception
-
copyCaseFiles
public void copyCaseFiles() throws java.lang.Exception
- Throws:
java.lang.Exception
-
copyIntoProject
public void copyIntoProject(java.lang.String path) throws java.lang.Exception
- Throws:
java.lang.Exception
-
runAntTarget
public void runAntTarget(java.lang.String target) throws java.lang.Exception
- Throws:
java.lang.Exception
-
-