|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
edu.rice.cs.drjava.DrJavaTestCase
edu.rice.cs.drjava.model.MultiThreadedTestCase
edu.rice.cs.drjava.model.GlobalModelTestCase
edu.rice.cs.drjava.model.GlobalModelJUnitTest
public final class GlobalModelJUnitTest
A test of Junit testing support in the GlobalModel.
Nested Class Summary | |
---|---|
class |
GlobalModelJUnitTest.JUnitCompileBeforeTestListener
Tests that testing an uncompiled but correct group of files will first compile and then run test. |
Field Summary |
---|
Fields inherited from class edu.rice.cs.drjava.model.GlobalModelTestCase |
---|
_doc, _interactionsController, _model, _tempDir, BAR_TEXT, BAZ_TEXT, FOO_MISSING_CLOSE_TEXT, FOO_PACKAGE_AFTER_IMPORT, FOO_PACKAGE_AS_FIELD, FOO_PACKAGE_AS_FIELD_2, FOO_PACKAGE_AS_PART_OF_FIELD, FOO_PACKAGE_INSIDE_CLASS, FOO_TEXT |
Fields inherited from class edu.rice.cs.drjava.model.MultiThreadedTestCase |
---|
_testFailed |
Fields inherited from class edu.rice.cs.drjava.DrJavaTestCase |
---|
TEST_DRJAVA_CONFIG_PROPERTY |
Constructor Summary | |
---|---|
GlobalModelJUnitTest()
|
Method Summary | |
---|---|
void |
safeJUnitAllWithErrors()
Tests that junit all works with test cases that do not pass. |
void |
safeJUnitAllWithNoErrors()
Tests that junit all works with one or two test cases that should pass. |
void |
safeJUnitAllWithNoValidTests()
Verifies that we get a nonTestCase event and that opening a single test file enables testing. |
void |
safeJUnitStaticInnerClass()
Tests that junit all works with one or two test cases that should pass. |
static Test |
suite()
Creates a test suite for JUnit to run. |
void |
testCorrectFilesAfterIncorrectChanges()
Tests that when a JUnit file with no errors is compiled and then modified to contain an error does not pass unit testing (by running correct class files). |
void |
testElspethOneJUnitError()
Tests that a JUnit file with an error is reported to have an error. |
void |
testInfiniteLoop()
Tests that an infinite loop in a test case can be aborted by clicking the Reset button. |
void |
testNoClassFile()
Tests a document that has no corresponding class file. |
void |
testNoJUnitErrors()
Tests that a JUnit file with no errors is reported to have no errors. |
void |
testNonTestCaseError()
Tests that the ui is notified to put up an error dialog if JUnit is run on a non-TestCase. |
void |
testOneJUnitError()
Tests that a JUnit file with an error is reported to have an error. |
void |
testRealError()
Tests that a test class which throws a *real* Error (not an Exception) is handled correctly. |
void |
testResultOfNonPublicTestCase()
Tests that the ui is notified to put up an error dialog if JUnit is run on a non-public TestCase. |
void |
testUnsavedAndUnCompiledChanges()
Tests that when a JUnit file with no errors, after being saved and compiled, has it's contents replaced by a test that should fail, will pass all tests. |
Methods inherited from class edu.rice.cs.drjava.model.MultiThreadedTestCase |
---|
join, listenerFail, wait |
Methods inherited from class edu.rice.cs.drjava.DrJavaTestCase |
---|
setConfigSetting, setDocText |
Methods inherited from class junit.framework.TestCase |
---|
countTestCases, createResult, getName, run, run, runBare, runTest, 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, failNotEquals, failNotSame, failSame, format |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public GlobalModelJUnitTest()
Method Detail |
---|
public static Test suite()
public void testNoJUnitErrors() throws Exception
Exception
public void testOneJUnitError() throws Exception
Exception
public void testElspethOneJUnitError() throws Exception
Exception
public void testRealError() throws Exception
Exception
public void testNonTestCaseError() throws Exception
Exception
public void testResultOfNonPublicTestCase() throws Exception
Exception
public void testNoClassFile() throws Exception
Exception
public void testInfiniteLoop() throws Exception
Exception
public void testUnsavedAndUnCompiledChanges() throws Exception
Exception
public void safeJUnitAllWithNoValidTests() throws Exception
Exception
public void safeJUnitAllWithNoErrors() throws Exception
Exception
public void safeJUnitAllWithErrors() throws Exception
Exception
public void safeJUnitStaticInnerClass() throws Exception
Exception
public void testCorrectFilesAfterIncorrectChanges() throws Exception
Exception
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |