|
org.netbeans.modules.jellytools.platform/3 3.13 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
org.netbeans.junit.NbTestCase
org.netbeans.jellytools.JellyTestCase
public class JellyTestCase
JUnit test case with implemented Jemmy/JellyTools support stuff.
| Field Summary | |
|---|---|
boolean |
captureScreen
screen capture feature in case of failure is enabled by default |
boolean |
closeAllModal
closing all modal dialogs after each test case is disabled by default |
boolean |
dumpScreen
screen XML dump feature in case of failure is disabled by default |
boolean |
waitNoEvent
Wait 1000 ms before every test case |
| Constructor Summary | |
|---|---|
JellyTestCase(String testName)
constructor required by JUnit |
|
| Method Summary | |
|---|---|
protected void |
clearTestStatus()
Clears test status (used when test does not depend on previous test) |
static void |
closeAllModal()
Closes all opened modal dialogs. |
void |
closeOpenedProjects()
Close projects opened by openProjects(String ...) or openDataProjects(String ...) |
void |
closeOpenedProjects(Object... projects)
Close projects opened by openProjects(String ...) or openDataProjects(String ...) |
protected static junit.framework.Test |
createModuleTest(Class testClass,
String... testNames)
|
protected static junit.framework.Test |
createModuleTest(String modules,
String clusters,
Class testClass,
String... testNames)
|
protected void |
endTest()
Sets the test status to 'finished' state (test passed) |
void |
fail(Throwable t)
Finishes test with status Fail |
protected void |
failNotify(Throwable reason)
Method called in case of fail or error just after screen shot and XML dumps. |
protected void |
initEnvironment()
Inits environment before test case is executed. |
void |
openDataProjects(String... projects)
Open projects located within NbTestCase.getDataDir(); |
void |
openProjects(String... projects)
Open projects. |
void |
runBare()
Overridden method from JUnit framework execution to perform conditional screen shot and conversion from TimeoutExpiredException to AssertionFailedError. |
protected void |
runTest()
Ensures that screen capture is done before the tearDown() is called |
protected void |
startTest()
Checks whether previous test finished correctly and sets test status to 'not finished' state |
void |
waitScanFinished()
Waits for the source scanning to be finished. |
| Methods inherited from class org.netbeans.junit.NbTestCase |
|---|
assertFile, assertFile, assertFile, assertFile, assertFile, assertFile, assertFile, assertFile, assertFile, assertFile, assertGC, assertGC, assertSize, assertSize, assertSize, assertSize, canRun, clearWorkDir, compareReferenceFiles, compareReferenceFiles, convertNBFSURL, failByBug, failByBug, getDataDir, getExpectedFail, getGoldenFile, getGoldenFile, getLog, getLog, getRef, getTestNumber, getWorkDir, getWorkDirPath, log, log, logLevel, logRoot, ref, run, runInEQ, setFilter, timeOut |
| Methods inherited from class junit.framework.TestCase |
|---|
countTestCases, createResult, getName, run, setName, setUp, tearDown, 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, failNotEquals, failNotSame, failSame, format |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface junit.framework.Test |
|---|
countTestCases |
| Field Detail |
|---|
public boolean captureScreen
public boolean dumpScreen
public boolean closeAllModal
public boolean waitNoEvent
| Constructor Detail |
|---|
public JellyTestCase(String testName)
testName - method name to be used as testcase| Method Detail |
|---|
protected void initEnvironment()
public void runBare()
throws Throwable
runBare in class NbTestCaseThrowable - Throwable
protected void runTest()
throws Throwable
runTest in class junit.framework.TestCaseThrowableprotected void failNotify(Throwable reason)
reason - Throwable reason of current failpublic static void closeAllModal()
public void fail(Throwable t)
t - Throwable reason of test failureprotected void startTest()
protected void endTest()
protected void clearTestStatus()
public void waitScanFinished()
junit.framework.AssertionFailedError - if scanning was canceled or other exception appears
public void openProjects(String... projects)
throws IOException
projects - - paths to the project directories.
IOException
public void openDataProjects(String... projects)
throws IOException
NbTestCase.getDataDir();
projects - - relative to dataDir (test/qa-functional/data) path names.
IOExceptionpublic void closeOpenedProjects()
public void closeOpenedProjects(Object... projects)
protected static junit.framework.Test createModuleTest(String modules,
String clusters,
Class testClass,
String... testNames)
protected static junit.framework.Test createModuleTest(Class testClass,
String... testNames)
|
org.netbeans.modules.jellytools.platform/3 3.13 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||