|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.faktorips.runtime.test.AbstractIpsTestRunner
public abstract class AbstractIpsTestRunner
Abstract class for all ips test runner implementation.
| Field Summary | |
|---|---|
protected ClassLoader |
classLoader
|
| Constructor Summary | |
|---|---|
AbstractIpsTestRunner()
|
|
| Method Summary | |
|---|---|
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 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)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.faktorips.runtime.test.IpsTestListener |
|---|
testFailureOccured, testFinished, testStarted |
| Field Detail |
|---|
protected ClassLoader classLoader
| Constructor Detail |
|---|
public AbstractIpsTestRunner()
| Method Detail |
|---|
public int countTests(String names)
throws Exception
{packageName in repository1}{packageName in repository2}{...}
Exception - if an error occurs.public List<IpsTest2> getTests()
protected List<IRuntimeRepository> getRepositories()
throws Exception
createRepositories()
- Throws:
Exception - if an error occurs.
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}{...}
public static List<String> extractListFromString(String input)
public static String toStringFromList(List<String> input)
protected abstract List<IRuntimeRepository> createRepositories()
throws Exception
Exception
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||