public class TestGeneious extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
initialize()
Initialize various public api utility methods.
|
static void |
initializeAllBundledPlugins()
Initializes all plugins that are bundled with Geneious so that that various
PluginUtilities methods
are able to access them. |
static void |
initializeAllPlugins()
Initializes all available plugins so that that various
PluginUtilities methods
are able to access them. |
static void |
initializePlugins(GeneiousPlugin... plugins)
Initializes plugins so that various
PluginUtilities methods
are able to access them. |
static void |
initializePlugins(String... pluginNames)
Initializes plugins so that various
PluginUtilities methods
are able to access them. |
static boolean |
isRunningApplication()
Deprecated.
Use
Geneious.isClient() instead |
static boolean |
isRunningTest()
Checks whether we are currently running from tests or whether Geneious is
running normally.
|
static void |
setNotRunningTest()
This is the first thing called by the application main() method.
|
static void |
setRunningApplication()
This is second thing (after
setNotRunningTest() when starting the Geneious application. |
public static void initialize()
public static void initializePlugins(String... pluginNames)
PluginUtilities methods
are able to access them. For example if your test case relies on importing a file type that another
plugin provides support for, then you would call this method followed by a call to
PluginUtilities.importDocuments(java.io.File, jebl.util.ProgressListener).pluginNames - A list of fully qualified class names of plugins to initialize. If no plugins are specified, then all available plugins are initialized. The behaviour where Geneious initializes all plugins if this is an empty list will be deprecated in future. Use initializeAllPlugins() instead.initializePlugins(GeneiousPlugin[]),
initializeAllPlugins(),
initializeAllBundledPlugins()public static void initializeAllPlugins()
PluginUtilities methods
are able to access them. For example if your test case relies on iterating through all DocumentOperations,
you would call this method followed by a call to PluginUtilities.getDocumentOperations().initializePlugins(GeneiousPlugin[]),
initializeAllBundledPlugins()public static void initializeAllBundledPlugins()
PluginUtilities methods
are able to access them. For example if your test case relies on iterating through all DocumentOperations,
you would call this method followed by a call to PluginUtilities.getDocumentOperations().initializePlugins(GeneiousPlugin[]),
initializeAllPlugins()public static void initializePlugins(GeneiousPlugin... plugins)
PluginUtilities methods
are able to access them. For example if your test case relies on importing a file type that another
plugin provides support for, then you would call this method followed by a call to
PluginUtilities.importDocuments(java.io.File, jebl.util.ProgressListener).plugins - A list of plugins to initialize.initializePlugins(String[]),
initializeAllPlugins()public static boolean isRunningTest()
setNotRunningTest(),
Geneious.isClient()public static void setNotRunningTest()
isRunningTest() will default to true.IllegalStateException - if this method is called more than once.isRunningTest()@Deprecated public static boolean isRunningApplication()
Geneious.isClient() insteadsetRunningApplication(),
isRunningTest()public static void setRunningApplication()
setNotRunningTest() when starting the Geneious application. If it is never called (which will
be the case when running unit tests that don't start the full application), then isRunningApplication() will default to false.IllegalStateException - if this method is called more than once.isRunningApplication()