Package org.eclipse.handly.junit
Class NoJobsWorkspaceTestCase
- java.lang.Object
-
- junit.framework.Assert
-
- junit.framework.TestCase
-
- org.eclipse.handly.junit.WorkspaceTestCase
-
- org.eclipse.handly.junit.NoJobsWorkspaceTestCase
-
- All Implemented Interfaces:
junit.framework.Test
public class NoJobsWorkspaceTestCase extends WorkspaceTestCase
AWorkspaceTestCasethat suspends execution of all jobs in itssetUp()method and resumes execution of jobs in itstearDown()method. It ensures that no jobs will execute while a test is running.- Since:
- 1.7
-
-
Constructor Summary
Constructors Constructor Description NoJobsWorkspaceTestCase()No-arg constructor to enable serialization.NoJobsWorkspaceTestCase(java.lang.String name)Constructs a test case with the given name.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidsetUp()Turns auto-build off, cleans up the workspace.protected voidtearDown()Cleans up the workspace.-
Methods inherited from class org.eclipse.handly.junit.WorkspaceTestCase
buildWorkspace, cleanUpWorkspace, getProject, getWorkspace, getWorkspaceRoot, resumeJobs, setAutoBuilding, setUpProject, suspendJobs, waitForBuildCompletion
-
Methods inherited from class junit.framework.TestCase
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, runBare, runTest, setName, toString
-
-
-
-
Constructor Detail
-
NoJobsWorkspaceTestCase
public NoJobsWorkspaceTestCase()
No-arg constructor to enable serialization. This method is not intended to be used by mere mortals without calling setName().
-
NoJobsWorkspaceTestCase
public NoJobsWorkspaceTestCase(java.lang.String name)
Constructs a test case with the given name.
-
-
Method Detail
-
setUp
protected void setUp() throws java.lang.ExceptionDescription copied from class:WorkspaceTestCaseTurns auto-build off, cleans up the workspace.- Overrides:
setUpin classWorkspaceTestCase- Throws:
java.lang.Exception
-
tearDown
protected void tearDown() throws java.lang.ExceptionDescription copied from class:WorkspaceTestCaseCleans up the workspace.- Overrides:
tearDownin classWorkspaceTestCase- Throws:
java.lang.Exception
-
-