@Test(expected=IllegalArgumentException.class) public void checkForExceptionWhenNullSetDocBaseUri() { this.catImpl.setDocBaseUri( null ); }
public void setDocBaseUri( URI docBaseUri ) { if ( isBuilt ) throw new IllegalStateException( "This CatalogBuilder has been built." ); if ( docBaseUri == null ) throw new IllegalArgumentException( "Catalog base URI must not be null." ); this.docBaseUri = docBaseUri; }
CatalogImpl implements Catalog, CatalogBuilder { public void setDocBaseUri( URI docBaseUri ) { if ( isBuilt ) throw new IllegalStateException( "This CatalogBuilder has been built." ); if ( docBaseUri == null ) throw new IllegalArgumentException( "Catalog base URI must not be null." ); this.docBaseUri = docBaseUri; } }
CatalogImpl implements Catalog, CatalogBuilder { public void setDocBaseUri( URI docBaseUri ) { if ( isBuilt ) throw new IllegalStateException( "This CatalogBuilder has been built." ); if ( docBaseUri == null ) throw new IllegalArgumentException( "Catalog base URI must not be null." ); this.docBaseUri = docBaseUri; } CatalogImpl( String name, URI docBaseUri, String version, DateType expires, DateType lastModified ); }
CatalogImpl implements Catalog, CatalogBuilder { public void setDocBaseUri( URI docBaseUri ) { if ( isBuilt ) throw new IllegalStateException( "This CatalogBuilder has been built." ); if ( docBaseUri == null ) throw new IllegalArgumentException( "Catalog base URI must not be null." ); this.docBaseUri = docBaseUri; } CatalogImpl( String name, URI docBaseUri, String version, DateType expires, DateType lastModified ); void setName( String name ); String getName(); void setDocBaseUri( URI docBaseUri ); URI getDocBaseUri(); void setVersion( String version ); String getVersion(); void setExpires( DateType expires ); DateType getExpires(); void setLastModified( DateType lastModified ); DateType getLastModified(); ServiceBuilder addService( String name, ServiceType type, URI baseUri ); boolean removeService( ServiceBuilder serviceBuilder ); List<Service> getServices(); Service getServiceByName( String name ); Service findServiceByNameGlobally( String name ); List<ServiceBuilder> getServiceBuilders(); ServiceBuilder getServiceBuilderByName( String name ); ServiceBuilder findServiceBuilderByNameGlobally( String name ); void addProperty( String name, String value ); boolean removeProperty( String name ); List<String> getPropertyNames(); String getPropertyValue( String name ); List<Property> getProperties(); Property getPropertyByName( String name ); DatasetBuilder addDataset( String name ); CatalogRefBuilder addCatalogRef( String name, URI reference ); boolean removeDataset( DatasetNodeBuilder builder ); List<DatasetNode> getDatasets(); DatasetNode getDatasetById( String id ); DatasetNode findDatasetByIdGlobally( String id ); List<DatasetNodeBuilder> getDatasetNodeBuilders(); DatasetNodeBuilder getDatasetNodeBuilderById( String id ); DatasetNodeBuilder findDatasetNodeBuilderByIdGlobally( String id ); boolean isBuilt(); BuilderIssues getIssues(); Catalog build(); }
CatalogImpl implements Catalog, CatalogBuilder { public void setDocBaseUri( URI docBaseUri ) { if ( isBuilt ) throw new IllegalStateException( "This CatalogBuilder has been built." ); if ( docBaseUri == null ) throw new IllegalArgumentException( "Catalog base URI must not be null." ); this.docBaseUri = docBaseUri; } CatalogImpl( String name, URI docBaseUri, String version, DateType expires, DateType lastModified ); void setName( String name ); String getName(); void setDocBaseUri( URI docBaseUri ); URI getDocBaseUri(); void setVersion( String version ); String getVersion(); void setExpires( DateType expires ); DateType getExpires(); void setLastModified( DateType lastModified ); DateType getLastModified(); ServiceBuilder addService( String name, ServiceType type, URI baseUri ); boolean removeService( ServiceBuilder serviceBuilder ); List<Service> getServices(); Service getServiceByName( String name ); Service findServiceByNameGlobally( String name ); List<ServiceBuilder> getServiceBuilders(); ServiceBuilder getServiceBuilderByName( String name ); ServiceBuilder findServiceBuilderByNameGlobally( String name ); void addProperty( String name, String value ); boolean removeProperty( String name ); List<String> getPropertyNames(); String getPropertyValue( String name ); List<Property> getProperties(); Property getPropertyByName( String name ); DatasetBuilder addDataset( String name ); CatalogRefBuilder addCatalogRef( String name, URI reference ); boolean removeDataset( DatasetNodeBuilder builder ); List<DatasetNode> getDatasets(); DatasetNode getDatasetById( String id ); DatasetNode findDatasetByIdGlobally( String id ); List<DatasetNodeBuilder> getDatasetNodeBuilders(); DatasetNodeBuilder getDatasetNodeBuilderById( String id ); DatasetNodeBuilder findDatasetNodeBuilderByIdGlobally( String id ); boolean isBuilt(); BuilderIssues getIssues(); Catalog build();  }