Package generic.concurrent
Class ConcurrentQTest
- java.lang.Object
-
- generic.test.AbstractGTest
-
- generic.test.AbstractGenericTest
-
- generic.concurrent.ConcurrentQTest
-
public class ConcurrentQTest extends AbstractGenericTest
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class generic.test.AbstractGenericTest
AbstractGenericTest.ExceptionHandlingRunner
-
-
Field Summary
-
Fields inherited from class generic.test.AbstractGenericTest
concurrentTestExceptionRule, DEFAULT_TEST_TOOL_NAME, ruleChain, TESTDATA_DIRECTORY_NAME, watchman
-
Fields inherited from class generic.test.AbstractGTest
BATCH_MODE, DEFAULT_WAIT_DELAY, DEFAULT_WAIT_TIMEOUT, DEFAULT_WINDOW_TIMEOUT, PARALLEL_MODE, PRIVATE_LONG_WAIT_TIMEOUT, testName
-
-
Constructor Summary
Constructors Constructor Description ConcurrentQTest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsetUp()voidtearDown()voidtestAddIterator()voidtestCancelExecution()voidtestFailure()voidtestListenerCallback()voidtestMaxThreads()voidtestOffer()voidtestParallelExecution()voidtestSequentialExecution()voidtestWaitForeverOnEmptyQueueDoesntBlock()voidtestWaitForLimitedTime()voidtestWaitForNextResult()voidtestWaitForNextResultExceptionDoesNotStop()voidtestWaitUntilDone()voidtestWaitUntilDoneIsCancellable()voidtestWaitUntilDoneOnEmptyQueue()voidtestWaitUntilDoneWithExceptionBeforeWait()voidtestWaitUntilDoneWithExceptionWhileWaiting()voidtestWaitUntilEmptyAndThreadsIdle()voidtestWaitWithTimeOutOnEmptyQueueDoesntBlock()-
Methods inherited from class generic.test.AbstractGenericTest
clickMouse, clickMouse, clickTableCell, createApplicationConfiguration, createApplicationLayout, createStackTraceForAllThreads, createTempDirectory, createTempFile, createTempFile, createTempFileForTest, createTempFileForTest, createTempFilePath, createTempFilePath, deleteMatchingTempFiles, deleteSimilarTempFiles, doubleClick, dragMouse, editCell, executeOnSwingWithoutBlocking, findAbstractButtonByName, findAbstractButtonByText, findButtonByIcon, findButtonByText, findComponent, findComponent, findComponentByName, findComponentByName, findComponentsByName, findOwnedWindows, findPathToText, findTestDataFile, findTreePathToText, fixupGUI, getAllWindows, getDebugFileDirectory, getInstanceField, getInstanceFieldByClassType, getLocalResourceFile, getTestDataDir, getTestDataDirectory, getTestDataFile, getText, hasTestFailed, initializeLayout, initializeSystemProperties, invokeConstructor, invokeInstanceMethod, invokeInstanceMethod, leftClick, loadTextResource, loadTextResource, middleClick, moveMouse, postEvent, pressButton, pressButton, pressButtonByName, pressButtonByName, pressButtonByText, pressButtonByText, printMemory, privateWaitForPostedSwingRunnables_SwingSafe, rightClick, runSwing, runSwing, runSwing, setComboBoxSelection, setInstanceField, setText, testFailed, toString, waitForPostedSwingRunnables, waitForSwing, waitForTasks, windowForComponent, yieldToSwing
-
Methods inherited from class generic.test.AbstractGTest
assertArraysEqualOrdered, assertArraysEqualUnordered, assertArraysEqualUnordered, assertContainsExactly, assertContainsExactly, assertListEqualOrdered, assertListEqualOrdered, assertListEqualsArrayOrdered, assertListEqualsArrayUnordered, assertListEqualUnordered, failWithException, getName, getRandomInt, getRandomInt, getRandomString, getRandomString, getTestDirectoryPath, sleep, waitFor, waitFor, waitFor, waitForCondition, waitForCondition, waitForConditionWithoutFailing, waitForValue, waitForValueWithoutFailing
-
-
-
-
Method Detail
-
setUp
public void setUp() throws java.lang.Exception- Throws:
java.lang.Exception
-
tearDown
public void tearDown() throws java.lang.Exception- Throws:
java.lang.Exception
-
testFailure
public void testFailure() throws java.lang.Exception- Throws:
java.lang.Exception
-
testSequentialExecution
public void testSequentialExecution() throws java.lang.Exception- Throws:
java.lang.Exception
-
testParallelExecution
public void testParallelExecution() throws java.lang.Exception- Throws:
java.lang.Exception
-
testAddIterator
public void testAddIterator() throws java.lang.Exception- Throws:
java.lang.Exception
-
testListenerCallback
public void testListenerCallback() throws java.lang.Exception- Throws:
java.lang.Exception
-
testWaitForLimitedTime
public void testWaitForLimitedTime() throws java.lang.Exception- Throws:
java.lang.Exception
-
testWaitUntilEmptyAndThreadsIdle
public void testWaitUntilEmptyAndThreadsIdle() throws java.lang.InterruptedException- Throws:
java.lang.InterruptedException
-
testWaitWithTimeOutOnEmptyQueueDoesntBlock
public void testWaitWithTimeOutOnEmptyQueueDoesntBlock() throws java.lang.InterruptedException- Throws:
java.lang.InterruptedException
-
testWaitForeverOnEmptyQueueDoesntBlock
public void testWaitForeverOnEmptyQueueDoesntBlock() throws java.lang.InterruptedException- Throws:
java.lang.InterruptedException
-
testCancelExecution
public void testCancelExecution() throws java.lang.Exception- Throws:
java.lang.Exception
-
testMaxThreads
public void testMaxThreads() throws java.lang.InterruptedException- Throws:
java.lang.InterruptedException
-
testWaitUntilDoneOnEmptyQueue
public void testWaitUntilDoneOnEmptyQueue() throws java.lang.Exception- Throws:
java.lang.Exception
-
testWaitUntilDone
public void testWaitUntilDone() throws java.lang.Exception- Throws:
java.lang.Exception
-
testWaitUntilDoneWithExceptionBeforeWait
public void testWaitUntilDoneWithExceptionBeforeWait() throws java.lang.Exception- Throws:
java.lang.Exception
-
testWaitUntilDoneWithExceptionWhileWaiting
public void testWaitUntilDoneWithExceptionWhileWaiting() throws java.lang.Exception- Throws:
java.lang.Exception
-
testWaitForNextResult
public void testWaitForNextResult() throws java.lang.Exception- Throws:
java.lang.Exception
-
testWaitForNextResultExceptionDoesNotStop
public void testWaitForNextResultExceptionDoesNotStop() throws java.lang.Exception- Throws:
java.lang.Exception
-
testWaitUntilDoneIsCancellable
public void testWaitUntilDoneIsCancellable() throws java.lang.Exception- Throws:
java.lang.Exception
-
testOffer
public void testOffer() throws java.lang.Exception- Throws:
java.lang.Exception
-
-