public class TaskMonitorTest extends TaskEventSourceTest
TaskMonitor
implementations.Modifier and Type | Class and Description |
---|---|
static class |
TaskMonitorTest.TestMessage
Task implementation monitoring is tested with. |
static class |
TaskMonitorTest.TestTaskListener
TaskListener implementation monitoring is tested with. |
Constructor and Description |
---|
TaskMonitorTest() |
Modifier and Type | Method and Description |
---|---|
org.jdtaus.core.monitor.TaskEventSource |
getTaskEventSource()
Gets the
TaskEventSource implementation tests are performed with. |
TaskMonitor |
getTaskMonitor()
Gets the
TaskMonitor implementation tests are performed with. |
void |
setTaskMonitor(TaskMonitor value)
Sets the
TaskMonitor implementation tests are performed with. |
void |
testCancelable()
Tests the
TaskMonitor.monitor(Task) and
TaskMonitor.finish(Task) implementation to fire corresponding
events during task monitoring when an application updates property
cancelled . |
void |
testIllegalArguments()
Tests the
TaskMonitor.monitor(Task) and
TaskMonitor.finish(Task) implementation to handle illegal
arguments correctly by throwing a corresponding
NullPointerException . |
void |
testMonitoring()
Tests the
TaskMonitor.monitor(Task) and
TaskMonitor.finish(Task) implementation to fire corresponding
events during task monitoring. |
void |
testProgressDescriptionMonitoring()
Tests the
TaskMonitor.monitor(Task) and
TaskMonitor.finish(Task) implementation to fire corresponding
events during task monitoring for property progressDescription . |
void |
testSynchronization()
Tests the
TaskMonitor.monitor(Task) and
TaskMonitor.finish(Task) implementation to not throw any
exceptions for parallel accessing tasks. |
setTaskEventSource, testAddTaskListener, testGetTaskListeners, testRemoveTaskListener
countTestCases, createResult, getName, run, run, runBare, runTest, setName, setUp, tearDown, toString
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
public TaskMonitorTest()
public final org.jdtaus.core.monitor.TaskEventSource getTaskEventSource()
TaskEventSource
implementation tests are performed with.getTaskEventSource
in class TaskEventSourceTest
TaskEventSource
implementation tests are performed
with.getTaskMonitor()
public TaskMonitor getTaskMonitor()
TaskMonitor
implementation tests are performed with.TaskMonitor
implementation tests are performed
with.public final void setTaskMonitor(TaskMonitor value)
TaskMonitor
implementation tests are performed with.value
- the TaskMonitor
implementation to perform tests
with.public void testIllegalArguments() throws Exception
TaskMonitor.monitor(Task)
and
TaskMonitor.finish(Task)
implementation to handle illegal
arguments correctly by throwing a corresponding
NullPointerException
.Exception
public void testMonitoring() throws Exception
TaskMonitor.monitor(Task)
and
TaskMonitor.finish(Task)
implementation to fire corresponding
events during task monitoring.Exception
public void testProgressDescriptionMonitoring() throws Exception
TaskMonitor.monitor(Task)
and
TaskMonitor.finish(Task)
implementation to fire corresponding
events during task monitoring for property progressDescription
.Exception
public void testCancelable() throws Exception
TaskMonitor.monitor(Task)
and
TaskMonitor.finish(Task)
implementation to fire corresponding
events during task monitoring when an application updates property
cancelled
.Exception
public void testSynchronization() throws Exception
TaskMonitor.monitor(Task)
and
TaskMonitor.finish(Task)
implementation to not throw any
exceptions for parallel accessing tasks.Exception
Copyright © 2005-2012 jDTAUS. All Rights Reserved.