@API(type=EXTENDABLE,
src=PRIVATE)
public abstract class PluginWorkspaceTCBase
extends junit.extensions.jfcunit.JFCTestCase
Modifier and Type | Field and Description |
---|---|
static int |
XML_AUTHOR_PRODUCT
XML Author
|
static int |
XML_DEVELOPER_PRODUCT
XML Developer
|
static int |
XML_EDITOR_PRODUCT
XML Editor
|
Constructor and Description |
---|
PluginWorkspaceTCBase(java.io.File installationFolder,
java.io.File frameworksFolder,
java.io.File pluginsFolder,
java.io.File optionsFolder,
java.lang.String licenseKey)
Constructor.
|
PluginWorkspaceTCBase(java.io.File installationFolder,
java.io.File frameworksFolder,
java.io.File pluginsFolder,
java.io.File optionsFolder,
java.lang.String licenseKey,
int productID)
Constructor.
|
PluginWorkspaceTCBase(java.io.File frameworksFolder,
java.io.File pluginsFolder,
java.lang.String licenseKey)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
WSAuthorEditorPage |
getCurrentAuthorEditorPageAccess()
Get the WSAuthorEditorPage for the current edited file.
|
java.lang.String |
getCurrentEditorXMLContent()
Get the XML content currently loaded in the current editor.
|
StandalonePluginWorkspace |
getPluginWorkspace()
Get the plugin workspace.
|
protected void |
invokeAuthorExtensionActionForID(java.lang.String id)
Invoke action with a certain ID on the AWT thread.
|
protected void |
moveCaretRelativeTo(java.lang.String text,
int relativePosition,
boolean select)
Move caret relative to a text already existing in the author page.
|
WSEditor |
open(java.net.URL url)
Open an URL.
|
protected void |
setUp() |
protected void |
tearDown() |
awtSleep, awtSleep, createNoExitSecurityManager, flushAWT, getAssertExit, getError, getHelper, getLockWait, hasError, isAWTRunning, pause, pauseAWT, resetError, resetForcedWait, resetSleepTime, resumeAWT, runBare, runCode, runTest, setAssertExit, setError, setForcedWait, setHelper, setLockWait, setSleepTime, sleep
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, setName, toString
public static final int XML_AUTHOR_PRODUCT
public static final int XML_EDITOR_PRODUCT
public static final int XML_DEVELOPER_PRODUCT
public PluginWorkspaceTCBase(java.io.File frameworksFolder, java.io.File pluginsFolder, java.lang.String licenseKey) throws java.lang.Exception
frameworksFolder
- The folder from where to load the frameworks. If null
it will default to the folder "frameworks" in the installationFolder.pluginsFolder
- The folder from where to load the plugins. If null
it will default to the folder "plugins" in the installationFolder.licenseKey
- The license key used to license the test Oxygen application.java.lang.Exception
public PluginWorkspaceTCBase(java.io.File installationFolder, java.io.File frameworksFolder, java.io.File pluginsFolder, java.io.File optionsFolder, java.lang.String licenseKey) throws java.lang.Exception
installationFolder
- The folder where Oxygen is installed. If null
it will default to the folder in which the JVM started (new File(".")).frameworksFolder
- The folder from where to load the frameworks. If null
it will default to the folder "frameworks" in the installationFolder.pluginsFolder
- The folder from where to load the plugins. If null
it will default to the folder "plugins" in the installationFolder.optionsFolder
- The folder from where to load the Oxygen options. Set to null to use the default options folder on your specific platform (located in the user home).licenseKey
- The license key used to license the test Oxygen application.java.lang.Exception
public PluginWorkspaceTCBase(java.io.File installationFolder, java.io.File frameworksFolder, java.io.File pluginsFolder, java.io.File optionsFolder, java.lang.String licenseKey, int productID) throws java.lang.Exception
installationFolder
- The folder where Oxygen is installed. If null
it will default to the folder in which the JVM started (new File(".")).frameworksFolder
- The folder from where to load the frameworks. If null
it will default to the folder "frameworks" in the installationFolder.pluginsFolder
- The folder from where to load the plugins. If null
it will default to the folder "plugins" in the installationFolder.optionsFolder
- The folder from where to load the Oxygen options. Set to null to use the default options folder on your specific platform (located in the user home).licenseKey
- The license key used to license the test Oxygen application.productID
- ID of the product which should be started, one of XML_AUTHOR_PRODUCT
, XML_EDITOR_PRODUCT
or XML_DEVELOPER_PRODUCT
.
The ID of the product should match the type of Oxygen installation that you are using to start the test case.java.lang.Exception
protected void tearDown() throws java.lang.Exception
tearDown
in class junit.extensions.jfcunit.JFCTestCase
java.lang.Exception
JFCTestCase.tearDown()
protected void setUp() throws java.lang.Exception
setUp
in class junit.extensions.jfcunit.JFCTestCase
java.lang.Exception
JFCTestCase.setUp()
public StandalonePluginWorkspace getPluginWorkspace()
public WSEditor open(java.net.URL url) throws java.lang.Exception
url
- The URL to open.java.lang.Exception
public java.lang.String getCurrentEditorXMLContent() throws java.lang.Exception
java.lang.Exception
public WSAuthorEditorPage getCurrentAuthorEditorPageAccess() throws java.lang.Exception
java.lang.Exception
protected void invokeAuthorExtensionActionForID(java.lang.String id) throws java.lang.Exception
id
- The id The action ID as defined in the framework.java.lang.Exception
protected void moveCaretRelativeTo(java.lang.String text, int relativePosition, boolean select) throws java.lang.Exception
text
- The text to searchrelativePosition
- The delta to move the caret with after finding the text.java.lang.Exception
© Copyright SyncRO Soft SRL 2002 - 2016. All rights reserved.