org.jboss.arquillian.protocol.jmx
Interface JMXTestRunnerMBean

All Superinterfaces:
NotificationBroadcaster
All Known Implementing Classes:
JMXTestRunner

public interface JMXTestRunnerMBean
extends NotificationBroadcaster

An MBean to run test methods in container.

Version:
$Revision: $
Author:
thomas.diesler@jboss.com

Field Summary
static String OBJECT_NAME
          The ObjectName for this service: jboss.arquillian:service=jmx-test-runner
 
Method Summary
 void push(String eventId, byte[] command)
          Client side to push a Command result back to container.
 Command<?> receive()
          Receive Command results
 byte[] runTestMethod(String className, String methodName)
          Runs a test method on the given test class
 void send(Command<?> command)
          Broadcast Command commands to any listeners
 
Methods inherited from interface javax.management.NotificationBroadcaster
addNotificationListener, getNotificationInfo, removeNotificationListener
 

Field Detail

OBJECT_NAME

static final String OBJECT_NAME
The ObjectName for this service: jboss.arquillian:service=jmx-test-runner

See Also:
Constant Field Values
Method Detail

runTestMethod

byte[] runTestMethod(String className,
                     String methodName)
Runs a test method on the given test class

Parameters:
className - the test class name
methodName - the test method name
Returns:
a serialized TestResult

send

void send(Command<?> command)
Broadcast Command commands to any listeners

Parameters:
command - Command object containing the request

receive

Command<?> receive()
Receive Command results

Returns:
command Command object containing the result, null if none received (yet)

push

void push(String eventId,
          byte[] command)
Client side to push a Command result back to container.

Parameters:
eventId - used to correlate the result
command - Command object containing the result, serialized


Copyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.