public abstract class AbstractIpsTestRunner extends Object implements IpsTestListener
| Constructor and Description |
|---|
AbstractIpsTestRunner() |
| Modifier and Type | Method and Description |
|---|---|
int |
countTests(String names)
Counts all ips test cases in the given packages.
The format of the input string is: |
protected abstract List<IRuntimeRepository> |
createRepositories()
Creates the repositories.
|
static List<String> |
extractListFromString(String input) |
protected ClassLoader |
getClassLoader() |
protected List<IRuntimeRepository> |
getRepositories()
Returns all stored repositories.
If the repositories currently not exists in memory create the repositories first. The repository will be created by the to be implemented method: createRepositories() |
protected List<String> |
getRepositoryListFromInputString(String repositoryPackages)
Returns a list of repository names from a given string of repositories.
The format of the input string is: |
String |
getRepositoryPackages()
Returns the repository packages names
|
List<IpsTest2> |
getTests()
Returns all tests.
|
void |
run(String names)
Run the all ips test cases in the given packages.
The format of the input string is: |
protected void |
setAdditionalRepositoryPackages(String additionalRepositoryPackages)
Sets additional packages, will be used to create the ClassloaderRuntimeRepository which could
be used in the runtime environment to obtain necessary objects.
|
void |
setClassLoader(ClassLoader classLoader)
Sets the classloader to find the test and instantiate the corresponding classes.
|
void |
setRepositoryPackages(String repositoryPackages)
Sets the repository packages names
|
static String |
toStringFromList(List<String> input) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waittestFailureOccured, testFinished, testStartedpublic int countTests(String names) throws Exception
{packageName in repository1}{packageName in repository2}{...}
Exception - if an error occurs.protected List<IRuntimeRepository> getRepositories() throws Exception
createRepositories()Exception - if an error occurs.protected ClassLoader getClassLoader()
public void setClassLoader(ClassLoader classLoader)
public void setRepositoryPackages(String repositoryPackages)
public String getRepositoryPackages()
protected void setAdditionalRepositoryPackages(String additionalRepositoryPackages)
public void run(String names) throws Exception
{packageName in repository1}{packageName in repository2}{...}
Exception - if an error occurs.protected List<String> getRepositoryListFromInputString(String repositoryPackages)
{repositoryName1}{repositoryName2}{...}
protected abstract List<IRuntimeRepository> createRepositories() throws Exception
ExceptionCopyright © 2020. All rights reserved.