Package org.opengis.cite.eogeojson10
Class DataFixture
java.lang.Object
org.opengis.cite.eogeojson10.DataFixture
- Direct Known Subclasses:
AquisitionInformationConfClassTests,AquisitionParametersConfClassTests,CoreTests,DataIdentificationConfClassTests,EarthObservationConfClassTests,EOCollectionConfClassTests,GeometryConfClassTests,LinksConfClassTests,MetadataInformationConfClassTests,OfferingConfClassTests,ProductInformationConfClassTests,PropertiesConfClassTests
Includes various tests of capability 1.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconvertInputStreamToString.voidobtainTestSubject(org.testng.ITestContext testContext) Obtains the test subject from the ISuite context.org.json.JSONObjectreadJSONObjectFromFile(File filePath) readJSONObjectFromFile.voidsetTestSubject(String testSubject) Sets the test subject.
-
Field Details
-
testSubject
testSubject -
collectionTestSubject
collectionTestSubject -
DEFAULT_BUFFER_SIZE
protected final int DEFAULT_BUFFER_SIZEDEFAULT_BUFFER_SIZE = 8192- See Also:
-
-
Constructor Details
-
DataFixture
public DataFixture()
-
-
Method Details
-
obtainTestSubject
@BeforeClass public void obtainTestSubject(org.testng.ITestContext testContext) Obtains the test subject from the ISuite context.- Parameters:
testContext- The test (group) context.
-
setTestSubject
Sets the test subject. This method is intended to facilitate unit testing.- Parameters:
testSubject- A Document node representing the test subject or metadata about it.
-
readJSONObjectFromFile
readJSONObjectFromFile.
- Parameters:
filePath- aFileobject- Returns:
- a
JSONObjectobject - Throws:
IOException- if any.
-
convertInputStreamToString
convertInputStreamToString.
- Parameters:
is- aInputStreamobject- Returns:
- a
Stringobject - Throws:
IOException- if any.
-