示例#1
0
 /**
  * Make the SamplePackage the running version, or make it no longer the running version. This
  * tells to each element of the SamplePackage that it's current state must be retrievable by a
  * call to recoverRunningVersion().
  *
  * @param running boolean
  * @see TestElement#setRunningVersion(boolean)
  */
 public void setRunningVersion(boolean running) {
   setRunningVersion(configs, running);
   setRunningVersion(sampleListeners, running);
   setRunningVersion(assertions, running);
   setRunningVersion(timers, running);
   setRunningVersion(postProcessors, running);
   setRunningVersion(preProcessors, running);
   setRunningVersion(controllers, running);
   sampler.setRunningVersion(running);
 }
示例#2
0
 /**
  * Recover each member of SamplePackage to the state before the call of setRunningVersion(true)
  *
  * @see TestElement#recoverRunningVersion()
  */
 public void recoverRunningVersion() {
   recoverRunningVersion(configs);
   recoverRunningVersion(sampleListeners);
   recoverRunningVersion(assertions);
   recoverRunningVersion(timers);
   recoverRunningVersion(postProcessors);
   recoverRunningVersion(preProcessors);
   recoverRunningVersion(controllers);
   sampler.recoverRunningVersion();
 }