diff --git a/java-schema-sdk/build.gradle b/java-schema-sdk/build.gradle index 6d6f5e4b..3caf4590 100644 --- a/java-schema-sdk/build.gradle +++ b/java-schema-sdk/build.gradle @@ -24,7 +24,7 @@ apply plugin: 'maven-publish' apply plugin: 'com.jfrog.bintray' // see https://github.com/bintray/gradle-bintray-plugin for details archivesBaseName = 'omh-schema-sdk' -version = '1.0.5-SNAPSHOT' +version = '1.0.5' ext { jacksonVersion = '2.6.3' diff --git a/java-schema-sdk/src/main/java/org/openmhealth/schema/domain/omh/OxygenSaturation.java b/java-schema-sdk/src/main/java/org/openmhealth/schema/domain/omh/OxygenSaturation.java index 57ae69d3..d99a4e66 100644 --- a/java-schema-sdk/src/main/java/org/openmhealth/schema/domain/omh/OxygenSaturation.java +++ b/java-schema-sdk/src/main/java/org/openmhealth/schema/domain/omh/OxygenSaturation.java @@ -44,7 +44,7 @@ @JsonNaming(PropertyNamingStrategy.LowerCaseWithUnderscoresStrategy.class) public class OxygenSaturation extends Measure { - private static final SchemaId SCHEMA_ID = new SchemaId(OMH_NAMESPACE, "oxygen-saturation", "1.0"); + public static final SchemaId SCHEMA_ID = new SchemaId(OMH_NAMESPACE, "oxygen-saturation", "1.0"); /** diff --git a/java-schema-sdk/src/test/java/org/openmhealth/schema/domain/omh/OxygenSaturationUnitTests.java b/java-schema-sdk/src/test/java/org/openmhealth/schema/domain/omh/OxygenSaturationUnitTests.java index 6f56fe31..79252a4d 100644 --- a/java-schema-sdk/src/test/java/org/openmhealth/schema/domain/omh/OxygenSaturationUnitTests.java +++ b/java-schema-sdk/src/test/java/org/openmhealth/schema/domain/omh/OxygenSaturationUnitTests.java @@ -28,6 +28,7 @@ import static org.openmhealth.schema.domain.omh.OxygenSaturation.MeasurementSystem.PERIPHERAL_CAPILLARY; import static org.openmhealth.schema.domain.omh.OxygenSaturation.SupplementalOxygenAdministrationMode.NASAL_CANNULA; import static org.openmhealth.schema.domain.omh.PercentUnit.PERCENT; +import static org.openmhealth.schema.domain.omh.SchemaSupport.OMH_NAMESPACE; import static org.openmhealth.schema.domain.omh.TimeFrameFactory.FIXED_MONTH; import static org.openmhealth.schema.domain.omh.TimeFrameFactory.FIXED_POINT_IN_TIME; @@ -124,6 +125,13 @@ public void measureShouldSerializeCorrectly() throws Exception { deserializationShouldCreateValidObject(expectedDocument, oxygenSaturation); } + @Test + public void schemaIdShouldReturnCorrectValues() { + + assertThat(OxygenSaturation.SCHEMA_ID.getName(), equalTo("oxygen-saturation")); + assertThat(OxygenSaturation.SCHEMA_ID.getNamespace(), equalTo(OMH_NAMESPACE)); + } + @Test public void equalsShouldReturnCorrectComparison() {