Class JMXTestRunner
java.lang.Object
javax.management.NotificationBroadcasterSupport
org.jboss.arquillian.protocol.jmx.JMXTestRunner
- All Implemented Interfaces:
NotificationBroadcaster,NotificationEmitter,JMXTestRunnerMBean
An MBean to run test methods in container.
- Author:
- thomas.diesler@jboss.com
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from interface org.jboss.arquillian.protocol.jmx.JMXTestRunnerMBean
OBJECT_NAME -
Constructor Summary
ConstructorsConstructorDescriptionJMXTestRunner(JMXTestRunner.TestClassLoader classLoader) JMXTestRunner(JMXTestRunner.TestClassLoader classLoader, String objectName) -
Method Summary
Modifier and TypeMethodDescriptionprotected org.jboss.arquillian.test.spi.TestResultdoRunTestMethod(TestRunner runner, Class<?> testClass, String methodName, Map<String, String> protocolProps) protected StringvoidClient side to push aCommandresult back to container.Command<?>receive()ReceiveCommandresultsregisterMBean(MBeanServer mbeanServer) byte[]runTestMethod(String className, String methodName) Runs a test method on the given test classbyte[]Runs a test method on the given test classvoidBroadcastCommandcommands to any listenersprotected voidsetCurrentCall(String current) voidunregisterMBean(MBeanServer mbeanServer) Methods inherited from class javax.management.NotificationBroadcasterSupport
addNotificationListener, getNotificationInfo, handleNotification, removeNotificationListener, removeNotificationListener, sendNotificationMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface javax.management.NotificationBroadcaster
addNotificationListener, getNotificationInfo, removeNotificationListener
-
Constructor Details
-
JMXTestRunner
-
JMXTestRunner
-
-
Method Details
-
registerMBean
- Throws:
JMException
-
unregisterMBean
- Throws:
JMException
-
runTestMethod
Description copied from interface:JMXTestRunnerMBeanRuns a test method on the given test class- Specified by:
runTestMethodin interfaceJMXTestRunnerMBean- Parameters:
className- the test class namemethodName- the test method name- Returns:
- a serialized
TestResult
-
runTestMethod
Description copied from interface:JMXTestRunnerMBeanRuns a test method on the given test class- Specified by:
runTestMethodin interfaceJMXTestRunnerMBean- Parameters:
className- the test class namemethodName- the test method name- Returns:
- a serialized
TestResult
-
doRunTestMethod
-
send
Description copied from interface:JMXTestRunnerMBeanBroadcastCommandcommands to any listeners- Specified by:
sendin interfaceJMXTestRunnerMBean- Parameters:
command- Command object containing the request
-
receive
Description copied from interface:JMXTestRunnerMBeanReceiveCommandresults- Specified by:
receivein interfaceJMXTestRunnerMBean- Returns:
- command Command object containing the result, null if none received (yet)
-
push
Description copied from interface:JMXTestRunnerMBeanClient side to push aCommandresult back to container.- Specified by:
pushin interfaceJMXTestRunnerMBean- Parameters:
eventId- used to correlate the resultcommand- Command object containing the result, serialized
-
getCurrentCall
- Returns:
- the currentCall
-
setCurrentCall
-