edu.rice.cs.drjava.model.javadoc
Class JavadocModelTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by edu.rice.cs.drjava.DrJavaTestCase
              extended by edu.rice.cs.drjava.model.javadoc.JavadocModelTest
All Implemented Interfaces:
Test

public class JavadocModelTest
extends DrJavaTestCase

Tests the functionality provided by an implementation of JavadocModel. For now, this class is hard-coded to test DefaultJavadocModel, but it can be extended to test any implementation of the interface.

Version:
$Id: JavadocModelTest.java 5189 2010-03-09 01:40:37Z mgricken $

Nested Class Summary
 
Nested classes/interfaces inherited from class junit.framework.TestCase
TestCase.WrappedException
 
Field Summary
private  java.io.File _storedFile
          Field needed by testUnsavedSuggestedDirectory
 
Constructor Summary
JavadocModelTest()
           
 
Method Summary
 void testCustomArguments()
          Be sure to test: -tag require:a:"Require:"
 void testErrors()
           
 void testExtractErrors()
           
 void testFileDefaultPackage()
           
 void testFileOnePackage()
           
 void testFilesMultiplePackages()
           
 void testFilesOnePackage()
           
 void testNoSuggestedDirectory()
          Tests that a no suggestion can be made for the destination directory if there is no valid source root.
 void testParseLine()
           
 void testPromptForDestination()
           
 void testSaveFirst()
           
 void testSimpleSuggestedDirectory()
          Tests that a simple suggestion can be made for the destination directory.
 void testUnsavedSuggestedDirectory()
          Tests that a suggestion can be made for an unsaved file, if the user chooses to save it.
 void testWarnings()
           
 
Methods inherited from class edu.rice.cs.drjava.DrJavaTestCase
setConfigSetting, setDocText, setUp, tearDown
 
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
 

Field Detail

_storedFile

private java.io.File _storedFile
Field needed by testUnsavedSuggestedDirectory

Constructor Detail

JavadocModelTest

public JavadocModelTest()
Method Detail

testSimpleSuggestedDirectory

public void testSimpleSuggestedDirectory()
Tests that a simple suggestion can be made for the destination directory.


testUnsavedSuggestedDirectory

public void testUnsavedSuggestedDirectory()
Tests that a suggestion can be made for an unsaved file, if the user chooses to save it.


testNoSuggestedDirectory

public void testNoSuggestedDirectory()
Tests that a no suggestion can be made for the destination directory if there is no valid source root.


testFileDefaultPackage

public void testFileDefaultPackage()

testFileOnePackage

public void testFileOnePackage()

testFilesOnePackage

public void testFilesOnePackage()

testFilesMultiplePackages

public void testFilesMultiplePackages()

testWarnings

public void testWarnings()

testErrors

public void testErrors()

testSaveFirst

public void testSaveFirst()

testPromptForDestination

public void testPromptForDestination()

testExtractErrors

public void testExtractErrors()

testParseLine

public void testParseLine()

testCustomArguments

public void testCustomArguments()
Be sure to test: -tag require:a:"Require:"