| edu.rice.cs.drjava.model.MultiThreadedTestCase edu.rice.cs.drjava.model.GlobalModelTestCase edu.rice.cs.drjava.model.GlobalModelCompileSuccessTestCase edu.rice.cs.drjava.model.GlobalModelCompileSuccessOptionsTest
GlobalModelCompileSuccessOptionsTest | final public class GlobalModelCompileSuccessOptionsTest extends GlobalModelCompileSuccessTestCase (Code) | | Tests to ensure that compilation succeeds when expected.
Every test in this class is run for *each* of the compilers that is available.
version: $Id: GlobalModelCompileSuccessOptionsTest.java 4255 2007-08-28 19:17:37Z mgricken $ |
Method Summary | |
public void | testCompileReferenceToNonPublicClass() Tests a compile on a file that references a non-public class defined in
another class with a name different than the non-public class. | public void | testCompileWithGenerics() Tests compiling a file with generics works with generic compilers.
(NOTE: this currently tests the GJ compiler, but not JSR-14...
JSR-14 is only available if the config option is set, and we clear
the config before running the tests. | public void | testCompileWithJavaAssert() Test support for assert keyword if enabled. |
testCompileReferenceToNonPublicClass | public void testCompileReferenceToNonPublicClass() throws BadLocationException, IOException, InterruptedException(Code) | | Tests a compile on a file that references a non-public class defined in
another class with a name different than the non-public class.
Doesn't reset interactions because no interpretations are performed.
|
testCompileWithGenerics | public void testCompileWithGenerics() throws BadLocationException, IOException, InterruptedException(Code) | | Tests compiling a file with generics works with generic compilers.
(NOTE: this currently tests the GJ compiler, but not JSR-14...
JSR-14 is only available if the config option is set, and we clear
the config before running the tests. We have a guess where the jar
is -- the lib directory -- but how can we get a URL for that?)
|
testCompileWithJavaAssert | public void testCompileWithJavaAssert() throws BadLocationException, IOException, InterruptedException(Code) | | Test support for assert keyword if enabled.
Note that this test only runs in Java 1.4 or higher.
Doesn't reset interactions because no interpretations are performed.
|
Methods inherited from edu.rice.cs.drjava.model.GlobalModelTestCase | protected void assertCompileErrorsPresent(boolean b)(Code)(Java Doc) protected void assertCompileErrorsPresent(String name, boolean b)(Code)(Java Doc) protected void assertContents(String s, OpenDefinitionsDocument doc) throws BadLocationException(Code)(Java Doc) protected void assertInteractionsContains(String text) throws EditDocumentException(Code)(Java Doc) protected void assertInteractionsDoesNotContain(String text) throws EditDocumentException(Code)(Java Doc) protected void assertInteractionsDoesNotMatch(String regex) throws EditDocumentException(Code)(Java Doc) protected void assertInteractionsMatches(String regex) throws EditDocumentException(Code)(Java Doc) protected void assertLength(int len, OpenDefinitionsDocument doc)(Code)(Java Doc) protected void assertModified(boolean b, OpenDefinitionsDocument doc)(Code)(Java Doc) protected void assertNumOpenDocs(int num)(Code)(Java Doc) protected void changeDocumentText(String s, OpenDefinitionsDocument doc) throws BadLocationException(Code)(Java Doc) protected File classForJava(File sourceFile, String className)(Code)(Java Doc) protected File createFile(String name)(Code)(Java Doc) protected synchronized OpenDefinitionsDocument doCompile(String text, File file) throws IOException, BadLocationException, InterruptedException(Code)(Java Doc) protected void doCompile(OpenDefinitionsDocument doc, File file) throws IOException, InterruptedException(Code)(Java Doc) protected String getCompilerErrorString()(Code)(Java Doc) protected String getInteractionsText() throws EditDocumentException(Code)(Java Doc) protected String interpret(String input) throws EditDocumentException(Code)(Java Doc) protected void interpretIgnoreResult(String input) throws EditDocumentException(Code)(Java Doc) public void setUp() throws Exception(Code)(Java Doc) protected OpenDefinitionsDocument setupDocument(String text) throws BadLocationException(Code)(Java Doc) public void tearDown() throws Exception(Code)(Java Doc) protected File tempDirectory() throws IOException(Code)(Java Doc) protected File tempFile() throws IOException(Code)(Java Doc) protected File tempFile(int i) throws IOException(Code)(Java Doc) protected File writeToNewTempFile(String text) throws IOException(Code)(Java Doc)
|
Fields inherited from edu.rice.cs.drjava.model.MultiThreadedTestCase | protected static volatile boolean _testFailed(Code)(Java Doc)
|
|
|