@@ -0,0 +1,1859 @@
+/*%0A * Copyright 2014 Open mHealth%0A *%0A * Licensed under the Apache License, Version 2.0 (the %22License%22);%0A * you may not use this file except in compliance with the License.%0A * You may obtain a copy of the License at%0A *%0A *     http://www.apache.org/licenses/LICENSE-2.0%0A *%0A * Unless required by applicable law or agreed to in writing, software%0A * distributed under the License is distributed on an %22AS IS%22 BASIS,%0A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.%0A * See the License for the specific language governing permissions and%0A * limitations under the License.%0A */%0A%0Apackage org.openmhealth.dsu.domain;%0A%0Aimport org.junit.Test;%0Aimport org.junit.runner.RunWith;%0Aimport org.junit.runners.BlockJUnit4ClassRunner;%0A%0Aimport static org.hamcrest.CoreMatchers.equalTo;%0Aimport static org.hamcrest.CoreMatchers.nullValue;%0Aimport static org.junit.Assert.assertThat;%0Aimport static org.openmhealth.dsu.domain.DataPointModality.SELF_REPORTED;%0A%0A%0A/**%0A * A suite of unit tests for the data point modality enumeration.%0A *%0A * @author Emerson Farrugia%0A */%0A@RunWith(BlockJUnit4ClassRunner.class)%0Apublic class DataPointModalityUnitTests %7B%0A%0A    @Test%0A    public void getJsonValueShouldReturnCorrectValue() throws Exception %7B%0A        assertThat(SELF_REPORTED.getJsonValue(), equalTo(%22self reported%22));%0A    %7D%0A%0A    @Test%0A    public void findByJsonValueShouldReturnNullWithUndefinedValue() throws Exception %7B%0A        assertThat(DataPointModality.findByJsonValue(null), nullValue());%0A    %7D%0A%0A    @Test%0A    public void findByJsonValueShouldReturnNullWithUnknownValue() throws Exception %7B%0A        assertThat(DataPointModality.findByJsonValue(%22foo%22), nullValue());%0A    %7D%0A%0A    @Test%0A    public void findByJsonValueShouldReturnMatchingValue() throws Exception %7B%0A        assertThat(DataPointModality.findByJsonValue(%22self reported%22), equalTo(SELF_REPORTED));%0A    %7D%0A%7D

Add data point modality unit tests.