|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
cs132.testCases.WebPageTests
public class WebPageTests
These test cases test the code in the cmsc132.webPage package. Since this code is provided to you, you shouldn't have to worry about them. But code isn't good code without tests, so we are providing you with the tests.
| Constructor Summary | |
|---|---|
WebPageTests()
|
|
| Method Summary | |
|---|---|
void |
setUp()
|
void |
testAdvancedCapitalization()
|
void |
testCapitalization()
|
void |
testFileGifImage()
|
void |
testFileWebPage()
Check to see if we can load a file URL and find two embedded HREFs |
void |
testHttpWebPage()
Check to see if we can load a file URL and find two embedded HREFs |
void |
testMultipleHRefsPerLine()
|
void |
testSpaces()
|
| Methods inherited from class junit.framework.TestCase |
|---|
countTestCases, getName, run, run, runBare, 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 |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public WebPageTests()
| Method Detail |
|---|
public void setUp()
throws java.lang.Exception
setUp in class junit.framework.TestCasejava.lang.Exception
public void testFileWebPage()
throws java.net.MalformedURLException
java.net.MalformedURLException
public void testHttpWebPage()
throws java.net.MalformedURLException
java.net.MalformedURLException
public void testFileGifImage()
throws java.net.MalformedURLException
java.net.MalformedURLException
public void testCapitalization()
throws java.net.MalformedURLException,
java.io.IOException
java.net.MalformedURLException
java.io.IOException
public void testAdvancedCapitalization()
throws java.net.MalformedURLException,
java.io.IOException
java.net.MalformedURLException
java.io.IOException
public void testSpaces()
throws java.net.MalformedURLException,
java.io.IOException
java.net.MalformedURLException
java.io.IOException
public void testMultipleHRefsPerLine()
throws java.net.MalformedURLException,
java.io.IOException
java.net.MalformedURLException
java.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||