|
Oxygen XML Editor 14.1 Author API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
junit.extensions.jfcunit.JFCTestCase
ro.sync.exml.workspace.api.PluginWorkspaceTCBase
@API(type=EXTENDABLE, src=PRIVATE) public abstract class PluginWorkspaceTCBase
Base class for testing plugins and frameworks.
For more details please read the topic called "Creating and Running Automated Tests" from the user manual:
http://www.oxygenxml.com/doc/ug-oxygen/topics/automated-tests.html
Please note that this API is not marked as final and it can change in one of the next versions of the application. If you have suggestions, comments about it, please let us know.
Constructor Summary | |
---|---|
PluginWorkspaceTCBase(java.io.File frameworksFolder,
java.io.File pluginsFolder,
java.lang.String licenseKey)
Constructor. |
Method Summary | |
---|---|
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()
|
Methods inherited from class junit.extensions.jfcunit.JFCTestCase |
---|
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 |
Methods inherited from class junit.framework.TestCase |
---|
countTestCases, createResult, getName, run, run, setName, toString |
Methods inherited from class junit.framework.Assert |
---|
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, fail, fail |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
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.pluginsFolder
- The folder from where to load the plugins.licenseKey
- The license key.
java.lang.Exception
Method Detail |
---|
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
|
Oxygen XML Editor 14.1 Author API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |