org.rhq.test.arquillian.spi
Interface PluginContainerOperationRemedy

All Known Implementing Classes:
AfterDiscoveryRemedy

public interface PluginContainerOperationRemedy

Implementations of this service interface are run after all of the PluginContainerOperations are run. They are meant to "cure" the Plugin Container from the state the operations put it in.

For example, running the discovery on the plugin container in the full agent-mode will kick off asynchronous child discoveries for each committed resource. This is not desirable in the test environment because we don't want any asynchronous activity during test execution.

Therefore there can be a "remedy" for the PluginContainer which is going to wait until all the async work has completed and PluginContainer is therefore in a predictable state.

Author:
Lukas Krejci

Method Summary
 void cure(PluginContainer pc, org.jboss.arquillian.test.spi.event.suite.TestEvent event)
          Puts the PluginContainer in a stable state after some operation execution.
 

Method Detail

cure

void cure(PluginContainer pc,
          org.jboss.arquillian.test.spi.event.suite.TestEvent event)
Puts the PluginContainer in a stable state after some operation execution.

Parameters:
pc -
event -


Copyright © 2008-2012 Red Hat, Inc.. All Rights Reserved.