|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
junit.com.mcdermottroe.exemplar.ExemplarTestCase<T>
junit.com.mcdermottroe.exemplar.UtilityClassTestCase<Main>
junit.com.mcdermottroe.exemplar.ui.cli.MainTest
public class MainTest
Test class for Main.
| Field Summary | |
|---|---|
private ExitHandler |
mainsOriginalHandler
The original ExitHandler for Main. |
| Fields inherited from class junit.com.mcdermottroe.exemplar.ExemplarTestCase |
|---|
DELIBERATE_PASS, testedClass, TMP |
| Constructor Summary | |
|---|---|
MainTest()
|
|
| Method Summary | |
|---|---|
private void |
setMainExit(boolean on)
Turn on or off the calling of System.exit(int) in Main. |
void |
setUp()
Set up the JUnit test. |
void |
testGetExitHandler()
Test Main.getExitHandler(). |
void |
testMain()
Test Main.main(String[]). |
void |
testSetExitHandler()
Test Main.setExitHandler(ExitHandler). |
| Methods inherited from class junit.com.mcdermottroe.exemplar.UtilityClassTestCase |
|---|
testAllFieldsStatic, testAllMethodsStatic, testOnePrivateConstructor |
| Methods inherited from class junit.com.mcdermottroe.exemplar.ExemplarTestCase |
|---|
getTestedClass, testAllMethodsBeingTested, testCorrectPackage |
| 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, format |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private ExitHandler mainsOriginalHandler
ExitHandler for Main.
| Constructor Detail |
|---|
public MainTest()
| Method Detail |
|---|
public void setUp()
throws Exception
setUp in class ExemplarTestCase<Main>Exception - if TestCase.setUp() throws one.ExemplarTestCase.testedClass,
TestCase.setUp()public void testMain()
Main.main(String[]).
public void testGetExitHandler()
Main.getExitHandler().
public void testSetExitHandler()
Main.setExitHandler(ExitHandler).
private void setMainExit(boolean on)
System.exit(int) in Main.
on - True to make Main call System.exit(int),
false otherwise.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||