Class ConcurrentTestPlugin

  • Direct Known Subclasses:
    SamplePlugin

    public abstract class ConcurrentTestPlugin
    extends java.lang.Object
    Used to extend functionality of mtsql.
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      abstract ConcurrentTestPluginCommand getCommandFor​(java.lang.String name, java.lang.String params)
      Create and return plugin command for given name.
      java.lang.Iterable<java.lang.String> getSupportedPreSetupCommands()
      What commands are supported by this plugin before the setup section.
      java.lang.Iterable<java.lang.String> getSupportedThreadCommands()
      What commands are supported by this plugin within a thread or repeat section.
      boolean isTestDisabled()
      Should containing test be disabled?
      void preSetupFor​(java.lang.String name, java.lang.String params)
      Do pre-setup action for given command and parameters.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ConcurrentTestPlugin

        public ConcurrentTestPlugin()
    • Method Detail

      • isTestDisabled

        public boolean isTestDisabled()
        Should containing test be disabled?
        Returns:
        true if containing test should be disabled
      • getSupportedThreadCommands

        public java.lang.Iterable<java.lang.String> getSupportedThreadCommands()
        What commands are supported by this plugin within a thread or repeat section. Commands should start with '@'.
        Returns:
        List of supported commands
      • getSupportedPreSetupCommands

        public java.lang.Iterable<java.lang.String> getSupportedPreSetupCommands()
        What commands are supported by this plugin before the setup section. Commands should start with '@'.
        Returns:
        List of supported commands
      • getCommandFor

        public abstract ConcurrentTestPluginCommand getCommandFor​(java.lang.String name,
                                                                  java.lang.String params)
        Create and return plugin command for given name.
        Parameters:
        name - Name of command plugin
        params - parameters for command.
        Returns:
        Initialized plugin command.
      • preSetupFor

        public void preSetupFor​(java.lang.String name,
                                java.lang.String params)
        Do pre-setup action for given command and parameters.
        Parameters:
        name - Name of command plugin
        params - parameters for command.