Package org.eclipse.epsilon.eunit.junit
Interface IEUnitSuite
-
public interface IEUnitSuite
Base interface that must be implemented by all test suites using theEclipseEUnitTestRunner
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.net.URI
getModuleURI()
Returns the URI of the main .eunit script to be run.OperationContributor
getOperationContributor()
Returns an operation contributor which can provide additional global functions through its methods.java.util.List<IModel>
prepareModels()
Returns the list of the models that should be used for the next test.
-
-
-
Method Detail
-
getOperationContributor
OperationContributor getOperationContributor()
Returns an operation contributor which can provide additional global functions through its methods. This operation is optional: if desired, users may simply returnnull
if they do not need this functionality. A custom operation contributor can be useful if we need to run tasks in another model-handling language, as the Ant tasks are not easy to use from a JUnit Plug-in Test.
-
getModuleURI
java.net.URI getModuleURI() throws java.lang.Exception
Returns the URI of the main .eunit script to be run.- Throws:
java.lang.Exception
-
prepareModels
java.util.List<IModel> prepareModels() throws java.lang.Exception
Returns the list of the models that should be used for the next test. These models should be reloaded in every call to this method, in order to ensure that each EUnit test is isolated from the rest.- Throws:
java.lang.Exception
-
-