Revision: 385
Author:
alex....@sensiasoftware.com
Date: Tue Feb 11 17:46:30 2014 UTC
Log: Added JUnit tests based on spec examples + fixed lots of bug
fixes in SWE common v2.0 reader/writer
http://code.google.com/p/swe-common-data-framework/source/detail?r=385
Added:
/trunk/swe-common-core/src/test/java/org/vast/sweCommon
/trunk/swe-common-core/src/test/java/org/vast/sweCommon/test
/trunk/swe-common-core/src/test/java/org/vast/sweCommon/test/TestSweCommonBindingsV20.java
/trunk/swe-common-core/src/test/resources/org
/trunk/swe-common-core/src/test/resources/org/vast
/trunk/swe-common-core/src/test/resources/org/vast/sweCommon
/trunk/swe-common-core/src/test/resources/org/vast/sweCommon/test
/trunk/swe-common-core/src/test/resources/org/vast/sweCommon/test/examples_v20
/trunk/swe-common-core/src/test/resources/org/vast/sweCommon/test/examples_v20/image_data.xml
/trunk/swe-common-core/src/test/resources/org/vast/sweCommon/test/examples_v20/nav_data.xml
/trunk/swe-common-core/src/test/resources/org/vast/sweCommon/test/examples_v20/spec
/trunk/swe-common-core/src/test/resources/org/vast/sweCommon/test/examples_v20/spec/array_image_band_interleaved.xml
/trunk/swe-common-core/src/test/resources/org/vast/sweCommon/test/examples_v20/spec/array_image_pixel_interleaved.xml
/trunk/swe-common-core/src/test/resources/org/vast/sweCommon/test/examples_v20/spec/array_trajectory.xml
/trunk/swe-common-core/src/test/resources/org/vast/sweCommon/test/examples_v20/spec/array_weather.xml
/trunk/swe-common-core/src/test/resources/org/vast/sweCommon/test/examples_v20/spec/choice_stream.xml
/trunk/swe-common-core/src/test/resources/org/vast/sweCommon/test/examples_v20/spec/constraints.xml
/trunk/swe-common-core/src/test/resources/org/vast/sweCommon/test/examples_v20/spec/datastream_with_quality.xml
/trunk/swe-common-core/src/test/resources/org/vast/sweCommon/test/examples_v20/spec/enc_binary_image.xml
/trunk/swe-common-core/src/test/resources/org/vast/sweCommon/test/examples_v20/spec/enc_text_choice_stream.xml
/trunk/swe-common-core/src/test/resources/org/vast/sweCommon/test/examples_v20/spec/enc_text_curve.xml
/trunk/swe-common-core/src/test/resources/org/vast/sweCommon/test/examples_v20/spec/enc_text_nav_options.xml
/trunk/swe-common-core/src/test/resources/org/vast/sweCommon/test/examples_v20/spec/enc_text_profile_series.xml
/trunk/swe-common-core/src/test/resources/org/vast/sweCommon/test/examples_v20/spec/enc_text_stress_matrix.xml
/trunk/swe-common-core/src/test/resources/org/vast/sweCommon/test/examples_v20/spec/enc_xml_curve.xml
/trunk/swe-common-core/src/test/resources/org/vast/sweCommon/test/examples_v20/spec/enc_xml_profile_series.xml
/trunk/swe-common-core/src/test/resources/org/vast/sweCommon/test/examples_v20/spec/matrix_rotation.xml
/trunk/swe-common-core/src/test/resources/org/vast/sweCommon/test/examples_v20/spec/nilValues.xml
/trunk/swe-common-core/src/test/resources/org/vast/sweCommon/test/examples_v20/spec/quality.xml
/trunk/swe-common-core/src/test/resources/org/vast/sweCommon/test/examples_v20/spec/range_components.xml
/trunk/swe-common-core/src/test/resources/org/vast/sweCommon/test/examples_v20/spec/record_coefs.xml
/trunk/swe-common-core/src/test/resources/org/vast/sweCommon/test/examples_v20/spec/record_weather.xml
/trunk/swe-common-core/src/test/resources/org/vast/sweCommon/test/examples_v20/spec/record_weather_xlinks.xml
/trunk/swe-common-core/src/test/resources/org/vast/sweCommon/test/examples_v20/spec/simple_components.xml
/trunk/swe-common-core/src/test/resources/org/vast/sweCommon/test/examples_v20/spec/stream_nav.xml
/trunk/swe-common-core/src/test/resources/org/vast/sweCommon/test/examples_v20/spec/vector_location.xml
/trunk/swe-common-core/src/test/resources/org/vast/sweCommon/test/examples_v20/spec/vector_quaternion.xml
/trunk/swe-common-core/src/test/resources/org/vast/sweCommon/test/examples_v20/spec/vector_velocity.xml
/trunk/swe-common-core/src/test/resources/org/vast/sweCommon/test/examples_v20/sps
/trunk/swe-common-core/src/test/resources/org/vast/sweCommon/test/examples_v20/sps/TaskingParameter_DataRecord.xml
/trunk/swe-common-core/src/test/resources/org/vast/sweCommon/test/examples_v20/sps/TaskingParameter_DataRecord_constraints.xml
/trunk/swe-common-core/src/test/resources/org/vast/sweCommon/test/examples_v20/sps/TaskingParameter_DataRecord_optional.xml
/trunk/swe-common-core/src/test/resources/org/vast/sweCommon/test/examples_v20/weather_data.xml
Modified:
/trunk/swe-common-core/src/main/java/org/vast/cdm/common/BinaryComponent.java
/trunk/swe-common-core/src/main/java/org/vast/sweCommon/AbstractDataWriter.java
/trunk/swe-common-core/src/main/java/org/vast/sweCommon/AsciiDataParser.java
/trunk/swe-common-core/src/main/java/org/vast/sweCommon/DataSourceDOM.java
/trunk/swe-common-core/src/main/java/org/vast/sweCommon/DefaultParserHandler.java
/trunk/swe-common-core/src/main/java/org/vast/sweCommon/DefaultWriterHandler.java
/trunk/swe-common-core/src/main/java/org/vast/sweCommon/NilValues.java
/trunk/swe-common-core/src/main/java/org/vast/sweCommon/SWECommonUtils.java
/trunk/swe-common-core/src/main/java/org/vast/sweCommon/SWEData.java
/trunk/swe-common-core/src/main/java/org/vast/sweCommon/SweComponentReaderV20.java
/trunk/swe-common-core/src/main/java/org/vast/sweCommon/SweComponentWriterV20.java
/trunk/swe-common-core/src/main/java/org/vast/sweCommon/SweConstants.java
/trunk/swe-common-core/src/main/java/org/vast/sweCommon/SweEncodingReaderV20.java
/trunk/swe-common-core/src/main/java/org/vast/sweCommon/SweEncodingWriterV1.java
/trunk/swe-common-core/src/main/java/org/vast/sweCommon/SweEncodingWriterV20.java
/trunk/swe-common-om/src/main/java/org/vast/ogc/om/ObservationWriterV20.java