Package java.net

Examples of java.net.URI


  @Test
  public void checkThatThreeUniqueOneDupAfterRemoveVarious()
          throws URISyntaxException
  {
    ServiceImpl dupWmsService = this.serviceContainer.addService( "wms", ServiceType.WCS, new URI( "http://server/thredds/wcs/" ) );

    this.serviceContainer.removeService( wmsService );

    assertEquals( dupWmsService, this.serviceContainer.getServiceBuilderByName( "wms" ));
    assertEquals( dupWmsService, this.serviceContainer.getServiceByGloballyUniqueName( "wms" ));
View Full Code Here


  protected void setUp()
  {
    parentCatName = "parent catalog";
    parentCatDocBaseUri = null;
    try
    { parentCatDocBaseUri = new URI( "http://server/thredds/aCat.xml");
      catRefUri = new URI( "http://server/thredds/anotherCat.xml" );
    }
    catch ( URISyntaxException e )
    { fail( "Bad URI syntax: " + e.getMessage()); }
    parentCatVer = "version";
    parentCatalog = new CatalogImpl( parentCatName, parentCatDocBaseUri, parentCatVer, null, null);
View Full Code Here

  protected void setUp()
  {
    serviceName = "serviceName";

    try
    { serviceBaseUri = new URI( "http://server/thredds/dodsC/" ); }
    catch ( URISyntaxException e )
    { fail( "Bad URI syntax: " + e.getMessage() ); }

    type = ServiceType.OPENDAP;
    serviceBuilder = new ServiceImpl( serviceName, type, serviceBaseUri, null );
View Full Code Here

  protected void setUp()
  {
    parentCatName = "parent catalog";
    try
    {
      parentCatDocBaseUri = new URI( "http://server/thredds/aCat.xml");
      catRefUri = new URI( "http://server/thredds/cat2.xml" );
      catRefUri2 = new URI( "http://server/thredds/cat3.xml" );
    }
    catch ( URISyntaxException e )
    {
      fail( "Bad URI syntax: " + e.getMessage());
      return;
View Full Code Here

  public void checkDatasetWithIdAuthorityAsAttributeAsExpected()
          throws URISyntaxException,
                 ThreddsXmlParserException
  {
    String docBaseUriString = "http://test/thredds/catalog2/xml/parser/IdAuthorityInheritanceTest/attribute.xml";
    URI docBaseUri = new URI( docBaseUriString );
    String catalogAsString = setupDatasetWithIdAuthorityAsAttribute();

    CatalogBuilder catBuilder = CatalogXmlUtils.parseCatalogIntoBuilder( docBaseUri, catalogAsString );

    CatalogXmlUtils.assertCatalogAsExpected( catBuilder, docBaseUri, null );
View Full Code Here

  public void checkDatasetWithIdAuthorityAsChildElementAsExpected()
          throws URISyntaxException,
                 ThreddsXmlParserException
  {
    String docBaseUriString = "http://test/thredds/catalog2/xml/parser/IdAuthorityInheritanceTest/childElement.xml";
    URI docBaseUri = new URI( docBaseUriString );
    String catalogAsString = setupDatasetWithIdAuthorityAsChildElement();

    CatalogBuilder catBuilder = CatalogXmlUtils.parseCatalogIntoBuilder( docBaseUri, catalogAsString );

    CatalogXmlUtils.assertCatalogAsExpected( catBuilder, docBaseUri, null );
View Full Code Here

  public void checkDatasetWithIdAuthorityInMetadataElement()
          throws URISyntaxException,
                 ThreddsXmlParserException
  {
    String docBaseUriString = "http://test/thredds/catalog2/xml/parser/IdAuthorityInheritanceTest/metadataElement.xml";
    URI docBaseUri = new URI( docBaseUriString );
    String catalogAsString = setupDatasetWithIdAuthorityInMetadataElement();

    CatalogBuilder catBuilder = CatalogXmlUtils.parseCatalogIntoBuilder( docBaseUri, catalogAsString );

    CatalogXmlUtils.assertCatalogAsExpected( catBuilder, docBaseUri, null );
View Full Code Here

  public void checkDatasetWithIdAuthorityInInheritedMetadataElement()
          throws URISyntaxException,
                 ThreddsXmlParserException
  {
    String docBaseUriString = "http://test/thredds/catalog2/xml/parser/IdAuthorityInheritanceTest/inheritedMetadataElement.xml";
    URI docBaseUri = new URI( docBaseUriString );
    String catalogAsString = setupDatasetWithIdAuthorityInInheritedMetadataElement();

    CatalogBuilder catBuilder = CatalogXmlUtils.parseCatalogIntoBuilder( docBaseUri, catalogAsString );

    CatalogXmlUtils.assertCatalogAsExpected( catBuilder, docBaseUri, null );
View Full Code Here

  public void checkDatasetNotInheritingIdAuthorityFromParentAuthorityAttribute()
          throws URISyntaxException,
                 ThreddsXmlParserException
  {
    String docBaseUriString = "http://test/thredds/catalog2/xml/parser/IdAuthorityInheritanceTest/notInheritFromParentAttribute.xml";
    URI docBaseUri = new URI( docBaseUriString );
    String catalogAsString = setupDatasetNotInheritingIdAuthorityFromParentAuthorityAttribute();

    CatalogBuilder catBuilder = CatalogXmlUtils.parseCatalogIntoBuilder( docBaseUri, catalogAsString );

    CatalogXmlUtils.assertCatalogAsExpected( catBuilder, docBaseUri, null );
View Full Code Here

  public void checkDatasetNotInheritingIdAuthorityFromParentAuthorityElement()
          throws URISyntaxException,
                 ThreddsXmlParserException
  {
    String docBaseUriString = "http://test/thredds/catalog2/xml/parser/IdAuthorityInheritanceTest/notInheritFromParentElement.xml";
    URI docBaseUri = new URI( docBaseUriString );
    String catalogAsString = setupDatasetNotInheritingIdAuthorityFromParentAuthorityElement();

    CatalogBuilder catBuilder = CatalogXmlUtils.parseCatalogIntoBuilder( docBaseUri, catalogAsString );

    CatalogXmlUtils.assertCatalogAsExpected( catBuilder, docBaseUri, null );
View Full Code Here

TOP

Related Classes of java.net.URI

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.