cs132.testCases
Class WebPageTests

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by cs132.testCases.WebPageTests
All Implemented Interfaces:
junit.framework.Test

public class WebPageTests
extends junit.framework.TestCase

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

WebPageTests

public WebPageTests()
Method Detail

setUp

public void setUp()
           throws java.lang.Exception
Overrides:
setUp in class junit.framework.TestCase
Throws:
java.lang.Exception

testFileWebPage

public void testFileWebPage()
                     throws java.net.MalformedURLException
Check to see if we can load a file URL and find two embedded HREFs

Throws:
java.net.MalformedURLException

testHttpWebPage

public void testHttpWebPage()
                     throws java.net.MalformedURLException
Check to see if we can load a file URL and find two embedded HREFs

Throws:
java.net.MalformedURLException

testFileGifImage

public void testFileGifImage()
                      throws java.net.MalformedURLException
Throws:
java.net.MalformedURLException

testCapitalization

public void testCapitalization()
                        throws java.net.MalformedURLException,
                               java.io.IOException
Throws:
java.net.MalformedURLException
java.io.IOException

testAdvancedCapitalization

public void testAdvancedCapitalization()
                                throws java.net.MalformedURLException,
                                       java.io.IOException
Throws:
java.net.MalformedURLException
java.io.IOException

testSpaces

public void testSpaces()
                throws java.net.MalformedURLException,
                       java.io.IOException
Throws:
java.net.MalformedURLException
java.io.IOException

testMultipleHRefsPerLine

public void testMultipleHRefsPerLine()
                              throws java.net.MalformedURLException,
                                     java.io.IOException
Throws:
java.net.MalformedURLException
java.io.IOException


Web Accessibility