|
||||||||||
| 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.javalanglevels.ElementaryLevelTest
public class ElementaryLevelTest
This is a high-level test to make sure that taking an Elementary Level file from source file to augmented file has the correct behavior, does not throw errors when it should not, throws errors when it should, and results in the correct augmented code. Files that should be successfully tested are placed in the testFiles/forElementaryLevelTest folder as .dj0 files, and the expected augmented files asre also placed in the testFiles/forElementaryLevelTest folder with the same name, but a .expected extension. Files that are expected to generate errors are placed in the testFiles/forElementaryLevelTest/shouldBreak folder, as .dj0 files. Other subdirectories are used for other tests.
| Constructor Summary | |
|---|---|
ElementaryLevelTest()
|
|
| Method Summary | |
|---|---|
static java.lang.String |
lf(java.lang.String s)
Convert whatever line feeds (\n, \r, \r\n) are in the string to just \n, ignoring trailing whitespace. |
void |
setUp()
|
void |
testEmptyFileNoAction()
An empty file should not get converted to a .java file. |
void |
testOrderMatters()
|
void |
testRequiresAutoboxing()
Makes sure that autoboxing is done appropriately |
void |
testShouldBeErrors()
|
void |
testSuccessful()
Tests some files that should be handled without errors, and ensures the resulting augmented file is correct. |
void |
xtestSomeFilesCompiled()
Tests that when some files have already been compiled, the .java files are not generated for those files, and files that reference those files are augmented correctly. |
| Methods inherited from class junit.framework.TestCase |
|---|
countTestCases, createResult, getName, run, run, runBare, runTest, setName, tearDown, 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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ElementaryLevelTest()
| Method Detail |
|---|
public void setUp()
setUp in class TestCasepublic void testSuccessful()
public void testShouldBeErrors()
public void xtestSomeFilesCompiled()
public void testOrderMatters()
public void testEmptyFileNoAction()
public void testRequiresAutoboxing()
public static java.lang.String lf(java.lang.String s)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||