Package org.faktorips.runtime.test
Class SocketIpsTestRunner
java.lang.Object
org.faktorips.runtime.test.AbstractIpsTestRunner
org.faktorips.runtime.test.SocketIpsTestRunner
- All Implemented Interfaces:
IpsTestListener
Socket test runner. Opens a socket connection to a given socket server port and runs the given
ips tests. The result will be written to the server socket.
- Author:
- Joerg Ortmann
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSocketIpsTestRunner
(int port, String repositoryPackages, String additionalRepositoryPackages) -
Method Summary
Modifier and TypeMethodDescriptionprotected List<IRuntimeRepository>
Creates the repositories.static void
The entry point for the socket test runner.void
Run the all ips test cases in the given packages.
The format of the input string is:void
testFailureOccured
(IpsTestFailure failure) void
testFinished
(IpsTest2 test) void
testStarted
(IpsTest2 test) Methods inherited from class org.faktorips.runtime.test.AbstractIpsTestRunner
countTests, extractListFromString, getClassLoader, getRepositories, getRepositoryListFromInputString, getRepositoryPackages, getTests, setAdditionalRepositoryPackages, setClassLoader, setRepositoryPackages, toStringFromList
-
Field Details
-
ALL_TESTS_STARTED
Socket messages- See Also:
-
ALL_TESTS_FINISHED
- See Also:
-
TEST_STARTED
- See Also:
-
TEST_FINISHED
- See Also:
-
TEST_FAILED
- See Also:
-
TEST_FAILED_DELIMITERS
- See Also:
-
TEST_ERROR
- See Also:
-
TEST_ERROR_END
- See Also:
-
TEST_ERROR_MESSAGE_INDICATOR
- See Also:
-
TEST_ERROR_STACK_INDICATOR
- See Also:
-
-
Constructor Details
-
SocketIpsTestRunner
public SocketIpsTestRunner() -
SocketIpsTestRunner
-
-
Method Details
-
main
The entry point for the socket test runner. The arguments are: args[0]: the port number to connect to args[1]: package name of the classpath repository args[2]: Name of the testsuite to run args[3]: additional classpath repositories (to find objects in the runtime environment)- Throws:
Exception
-
run
Description copied from class:AbstractIpsTestRunner
Run the all ips test cases in the given packages.
The format of the input string is:
{packageName in repository1}{packageName in repository2}{...}
- Overrides:
run
in classAbstractIpsTestRunner
-
createRepositories
Description copied from class:AbstractIpsTestRunner
Creates the repositories. Where the test will be searched.- Specified by:
createRepositories
in classAbstractIpsTestRunner
- Throws:
Exception
-
testStarted
-
testFinished
-
testFailureOccured
-