@@ -0,0 +1,1060 @@
+package com.openxc;%0A%0Aimport static org.hamcrest.MatcherAssert.assertThat;%0Aimport static org.hamcrest.Matchers.equalTo;%0A%0Aimport org.junit.Before;%0Aimport org.junit.Test;%0Aimport static org.junit.Assert.assertFalse;%0A%0Aimport com.openxc.units.Meter;%0Aimport com.openxc.measurements.Measurement;%0Aimport com.openxc.measurements.NoValueException;%0Aimport com.openxc.measurements.NoRangeException;%0A%0Apublic class NoRangeMeasurementTest %7B%0A    Measurement%3CMeter%3E measurement;%0A%0A    @Before%0A    public void setUp() %7B%0A        measurement = new Measurement%3CMeter%3E(new Meter(10.0));%0A    %7D%0A%0A    @Test%0A    public void testHasValue() %7B%0A        assertThat(measurement.hasValue(), equalTo(true));%0A    %7D%0A%0A    @Test%0A    public void testHasNoRange() %7B%0A        assertFalse(measurement.hasRange());%0A    %7D%0A%0A    @Test(expected=NoRangeException.class)%0A    public void testEmptyRange() throws NoRangeException %7B%0A        measurement.getRange();%0A    %7D%0A%0A    @Test%0A    public void testGet() throws NoValueException %7B%0A        assertThat(measurement.getValue().doubleValue(), equalTo(10.0));%0A    %7D%0A%7D%0A

Test measurements with a value but no range.