package com.openxc.measurements; import static org.hamcrest.MatcherAssert.assertThat; import static org.hamcrest.Matchers.*; import static org.junit.Assert.*; import org.junit.Before; import org.junit.Test; import com.openxc.units.Degree; public class LatitudeTest { Latitude measurement; @Before public void setUp() { measurement = new Latitude(new Degree(42.0)); } @Test public void testGet() { assertThat(measurement.getValue().doubleValue(), equalTo(42.0)); } @Test public void testHasRange() { assertTrue(measurement.hasRange()); } }