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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionconvertInputStreamToString.void
obtainTestSubject
(org.testng.ITestContext testContext) Obtains the test subject from the ISuite context.org.json.JSONObject
readJSONObjectFromFile
(File filePath) readJSONObjectFromFile.void
setTestSubject
(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
- aFile
object- Returns:
- a
JSONObject
object - Throws:
IOException
- if any.
-
convertInputStreamToString
convertInputStreamToString.
- Parameters:
is
- aInputStream
object- Returns:
- a
String
object - Throws:
IOException
- if any.
-