Class NameTest


  • public class NameTest
    extends TestCase
    Tests generic name and related objects from the org.opengis.util package. Name instances are created using a NameFactory given at construction time.
    Since:
    2.2
    Version:
    3.0
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected NameFactory factory
      The factory to be used for testing generic name instances, or null if none.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected NameTest​(NameFactory factory)
      Creates a new test using the given factory.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      private NameSpace createNameSpace​(GenericName name, java.lang.String headSeparator, java.lang.String separator)
      Creates a namespace having the given name and separator.
      void testInternationalString()
      Tests the creation of "My documents" folder name.
      void testLocalName()
      Tests the creation of "EPSG:4326" as local names.
      void testParsedHTTP()
      Tests the parsing of "http://www.opengis.net/gml/srs/epsg.xml#4326" as a local name.
      void testParsedURN()
      Tests the parsing of "urn:ogc:def:crs:epsg:4326" as a scoped name.
      void testScopedName()
      Tests the creation of "urn:ogc:def:crs:epsg:4326" as a scoped name.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait