org.geotools.validation.attributes
Class GazetteerNameValidationTest

java.lang.Object
  extended byjunit.framework.Assert
      extended byjunit.framework.TestCase
          extended byorg.geotools.validation.attributes.GazetteerNameValidationTest
All Implemented Interfaces:
junit.framework.Test

public class GazetteerNameValidationTest
extends junit.framework.TestCase

GazetteerNameValidationTest purpose.

Description of GazetteerNameValidationTest ...


Constructor Summary
GazetteerNameValidationTest()
           
GazetteerNameValidationTest(java.lang.String s)
           
 
Method Summary
static org.w3c.dom.Element getChildElement(org.w3c.dom.Element root, java.lang.String name)
          getChildElement purpose.
static java.lang.String getChildText(org.w3c.dom.Element root, java.lang.String childName)
          getChildText purpose.
 void testURLConnection()
           
 void testValidate()
           
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, name, run, run, runBare, runTest, setName, setUp, tearDown, toString
 
Methods inherited from class junit.framework.Assert
assert, assert, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertNotNull, assertNotNull, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GazetteerNameValidationTest

public GazetteerNameValidationTest()

GazetteerNameValidationTest

public GazetteerNameValidationTest(java.lang.String s)
Method Detail

testValidate

public void testValidate()

testURLConnection

public void testURLConnection()

getChildElement

public static org.w3c.dom.Element getChildElement(org.w3c.dom.Element root,
                                                  java.lang.String name)
getChildElement purpose.

Used to help with XML manipulations. Returns the first child element of the specified name.

Parameters:
root - The root element to look for children in.
name - The name of the child element to look for.
Returns:
The child element found, null if not found.
See Also:
getChildElement(Element,String,boolean)

getChildText

public static java.lang.String getChildText(org.w3c.dom.Element root,
                                            java.lang.String childName)
getChildText purpose.

Used to help with XML manipulations. Returns the first child text value of the specified element name.

Parameters:
root - The root element to look for children in.
childName - The name of the attribute to look for.
Returns:
The value if the child was found, the null otherwise.