Class TestWithPlugin

java.lang.Object
test.de.iip_ecosphere.platform.support.TestWithPlugin

public class TestWithPlugin extends Object
Plugin-based test, aiming at inheriting plugin loading.
Author:
Holger Eichelberger, SSE
  • Field Details

  • Constructor Details

    • TestWithPlugin

      public TestWithPlugin()
  • Method Details

    • addPluginLocation

      public static void addPluginLocation(String parent, String folder, String installFolder, boolean descriptorOnly, String... appends)
      Adds a new plugin location.
      Parameters:
      parent - the parent folder (in git workspace)
      folder - the plugin folder within the parent folder (in git workspace)
      installFolder - (in unpacked plugins)
      descriptorOnly - shall only be descriptor JARs loaded or the full classpath
      appends - optional plugins to be appended
    • collectAppends

      private static File[] collectAppends(File base, String[] appends)
      Collects the appended plugins.
      Parameters:
      base - the base folder for relocation
      appends - the appended plugins
      Returns:
      the appended plugins, may be null
    • enableLocalPlugins

      public static void enableLocalPlugins(boolean enable)
      Whether local plugins shall be enabled.
      Parameters:
      enable - enable or disable (default is enabled)
    • setInstallDir

      public static void setInstallDir(String dir)
      Sets the folder where the plugins are installed.
      Parameters:
      dir - the folder
    • loadPlugins

      public static void loadPlugins()
      Loads plugins statically.
    • addRunAfterLoading

      public static void addRunAfterLoading(Runnable runnable)
      Adds functions to be executed after loading.
      Parameters:
      runnable - the runnable to add
    • clear

      public static void clear()
      Removes all plugin locations.
    • setup

      public void setup()
      Sets up plugins. Non-static so that loading is inherited.