Package thredds.catalog2.xml.parser.stax

Examples of thredds.catalog2.xml.parser.stax.KeyphraseElementParser$Factory


  }

  public void testBuild()
  {
    // Check if buildable
    BuilderIssues issues = mdImpl1.getIssues();
    if ( ! issues.isValid() )
    {
      StringBuilder stringBuilder = new StringBuilder( "Invalid metadata: " ).append( issues.toString());
      fail( stringBuilder.toString() );
    }
    issues = mdImpl2.getIssues();
    if ( ! issues.isValid() )
    {
      StringBuilder stringBuilder = new StringBuilder( "Invalid metadata: " ).append( issues.toString());
      fail( stringBuilder.toString() );
    }

    // Build
    try
View Full Code Here


  }

  @Test
  public void checkThatThreeUniqueServicesContainerBuilds() throws BuilderException
  {
    BuilderIssues issues = this.serviceContainer.getIssues();
    assertTrue( issues.toString(), issues.isValid());
    assertTrue( issues.toString(), issues.isEmpty());

    this.serviceContainer.build();

    assertTrue( this.serviceContainer.isBuilt() );
  }
View Full Code Here

  @Test
  public void checkThatNewContainerBuilds() throws BuilderException
  {
    GlobalServiceContainer gsc = new GlobalServiceContainer();
    ServiceContainer sc = new ServiceContainer( gsc);
    BuilderIssues issues = sc.getIssues();
    assertTrue( issues.toString(), issues.isValid() );

    sc.build();

    assertTrue( sc.isBuilt() );
  }
View Full Code Here

    accessImpl.setUrlPath( urlPath );
    accessImpl.setDataSize( dataSize );
    accessImpl.setDataFormat( formatType );

    // Check if buildable
    BuilderIssues issues = accessImpl.getIssues();
    if ( ! issues.isValid() )
    {
      StringBuilder stringBuilder = new StringBuilder( "Invalid access: ").append( issues.toString() );
      fail( stringBuilder.toString() );
    }

    // Build
    Access access = null;
View Full Code Here

    assertEquals( odapName, si.getName());
    assertEquals( odapType, si.getType());
    assertEquals( odapBaseUri, si.getBaseUri());

    BuilderIssues issues = si.getIssues();
    assertTrue( issues.toString(), issues.isValid());
    assertTrue( issues.toString(), issues.isEmpty());
  }
View Full Code Here

    String suffix = ".suffix";
    service.setSuffix( suffix );
    assertEquals( suffix, service.getSuffix() );

    BuilderIssues issues = service.getIssues();
    assertTrue( issues.toString(), issues.isValid() );
    assertTrue( issues.toString(), issues.isEmpty() );
  }
View Full Code Here

  {
    this.allService.addProperty( "propName1", "propValue1" );
    this.allService.addProperty( "propName2", "propValue2" );

    // Check if buildable
    BuilderIssues issues = this.allService.getIssues();
    assertTrue( issues.toString(), issues.isValid());
    assertTrue( issues.toString(), issues.isEmpty());

    // Build
    Service s = this.allService.build();

    assertNotNull( s);
View Full Code Here

  @Test
  public void checkBuildIssuesOnCompoundServiceWhenContainingServiceWithNonuniqueName()
  {
    ServiceBuilder dupService = this.allService.addService( this.odapName, this.wcsType, this.wcsBaseUri );

    BuilderIssues issues = this.allService.getIssues();
    assertTrue( issues.toString(), issues.isValid() );
    assertFalse( issues.toString(), issues.isEmpty() );
  }
View Full Code Here

  {
    ThreddsMetadataBuilder.VariableGroupBuilder varGrpBldr = new ThreddsMetadataImpl.VariableGroupImpl();

    varGrpBldr.addVariableBuilder( "name", "desc", "units", "vocabId", "vocabName" );

    BuilderIssues bldrIssues = varGrpBldr.getIssues();
    assertTrue( bldrIssues.isEmpty());
  }
View Full Code Here

  public void checkVariableGroupNoBuildIssuesWithVarMap()
  {
    ThreddsMetadataBuilder.VariableGroupBuilder varGrpBldr = new ThreddsMetadataImpl.VariableGroupImpl();
    varGrpBldr.setVariableMapUrl( "varMapUrl" );

    BuilderIssues bldrIssues = varGrpBldr.getIssues();
    assertTrue( bldrIssues.isEmpty());
    assertTrue( bldrIssues.isValid());
  }
View Full Code Here

TOP

Related Classes of thredds.catalog2.xml.parser.stax.KeyphraseElementParser$Factory

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.