public class BaseFixture extends Object
Modifier and Type | Field and Description |
---|---|
protected DocumentBuilder |
docBuilder
A DOM parser.
|
protected static String |
ETS_PKG
Root ETS package.
|
protected Map<QName,FeatureTypeInfo> |
featureInfo |
protected List<QName> |
featureTypes |
protected Document |
reqEntity
A Document representing the content of the request message.
|
protected Document |
rspEntity
A Document representing the content of the response message.
|
protected Set<ProtocolBinding> |
supportedBindings |
protected static String |
TNS_PREFIX |
protected WFSClient |
wfsClient
A client component for interacting with a WFS.
|
protected Document |
wfsMetadata
A DOM document containing service metadata (OGC capabilities).
|
protected String |
wfsVersion
Highest version supported by the IUT.
|
Constructor and Description |
---|
BaseFixture() |
Modifier and Type | Method and Description |
---|---|
void |
addAttributesOnTestFailure(org.testng.ITestResult result)
Augments the test result with supplementary attributes in the event that
a test method failed.
|
Iterator<Object[]> |
allProtocolsAndFeatureTypes()
A DataProvider that supplies parameters specifying a supported protocol
binding and a feature type.
|
Iterator<Object[]> |
bindingAndAvailFeatureTypeProductSet(org.testng.ITestContext testContext)
A DataProvider that supplies a collection of parameter tuples (a product
set) where each tuple has two elements:
ProtocolBinding - a supported request binding
QName - the name of a feature type for which data are available
|
protected Document |
extractBodyAsDocument(com.sun.jersey.api.client.ClientResponse rsp)
Extracts the body of the response message as a DOM Document node.
|
Object[][] |
getFeatureTypes()
A DataProvider that supplies the complete set of feature types recognized
by the SUT.
|
Iterator<Object[]> |
getInstantiatedFeatureTypes()
A DataProvider that supplies feature type names for which instances
exist.
|
Object[][] |
getProtocolBindings(org.testng.ITestContext testContext)
A DataProvider that supplies the set of application protocol bindings
supported by the SUT.
|
void |
initBaseFixture(org.testng.ITestContext testContext)
Sets up the base fixture.
|
void |
initParser()
Initializes the (namespace-aware) DOM parser.
|
void |
setWfsClient(WFSClient wfsClient) |
protected static final String ETS_PKG
protected Document wfsMetadata
protected WFSClient wfsClient
protected Set<ProtocolBinding> supportedBindings
protected Map<QName,FeatureTypeInfo> featureInfo
protected DocumentBuilder docBuilder
protected static final String TNS_PREFIX
protected Document reqEntity
protected Document rspEntity
protected String wfsVersion
public void setWfsClient(WFSClient wfsClient)
public void initBaseFixture(org.testng.ITestContext testContext)
testSubject
should yield a DOM
Document node having {http://www.opengis.net/wfs/2.0}WFS_Capabilities as
the document element.
The set of implemented protocol bindings is determined from the service
metadata by checking the values of the following service constraints:
testContext
- The test (set) context.public void initParser()
public void addAttributesOnTestFailure(org.testng.ITestResult result)
result
- A description of the test result.public Object[][] getProtocolBindings(org.testng.ITestContext testContext)
testContext
- Supplies details about the test run.public Object[][] getFeatureTypes()
public Iterator<Object[]> getInstantiatedFeatureTypes()
public Iterator<Object[]> allProtocolsAndFeatureTypes()
public Iterator<Object[]> bindingAndAvailFeatureTypeProductSet(org.testng.ITestContext testContext)
testContext
- The ITestContext object for the test run.protected Document extractBodyAsDocument(com.sun.jersey.api.client.ClientResponse rsp)
rsp
- A ClientResponse representing an HTTP response message.null
if
it could not be parsed.Copyright © 2022 Open Geospatial Consortium. All rights reserved.