org.ops4j.pax.exam
Interface TestTarget
- All Known Subinterfaces:
- TestContainer
public interface TestTarget
- Since:
- Jan 22, 2010
- Author:
- Toni Menzel
call
void call(TestAddress address,
Object... args)
throws ClassNotFoundException,
InvocationTargetException,
InstantiationException,
IllegalAccessException
- Parameters:
address - the target to be called.args - optional arguments that the target might accept. Superfluous arguments are being dropped.
- Throws:
ClassNotFoundException - Problems
InvocationTargetException - Problems
InstantiationException - Problems
IllegalAccessException - Problems
install
long install(InputStream stream)
- Parameters:
stream - stream the content
- Returns:
- Bundle ID
cleanup
void cleanup()
- Do the cleanup operation as good as possible.
Like rewinding all installed probes.
waitForState
void waitForState(long bundleId,
int state,
long timeoutInMillis)
throws TimeoutException
- Waits for a bundle to be in a certain state and returns.
- Parameters:
bundleId - bundle idstate - expected statetimeoutInMillis - max time to wait for state
- Throws:
TimeoutException - - if timeout occured and expected state has not being reached
Copyright © 2006-2011 OPS4J - Open Participation Software for Java. All Rights Reserved.