for some reason the test only runs with @Test on the main class...

This commit is contained in:
kimchy 2010-10-26 20:20:58 +02:00
parent c08ad0cad6
commit 73e6aa72cd
1 changed files with 3 additions and 2 deletions

View File

@ -27,12 +27,13 @@ import static org.hamcrest.Matchers.*;
/**
* @author kimchy (shay.banon)
*/
@Test
public class DistanceUnitTests {
@Test void testSimpleDistanceUnit() {
assertThat(DistanceUnit.MILES.toKilometers(10), closeTo(16.09344, 0.001));
assertThat(DistanceUnit.MILES.toMiles(10), closeTo(10, 0.001));
assertThat(DistanceUnit.KILOMETERS.toMiles(10), closeTo(6.21371192, 0.000));
assertThat(DistanceUnit.KILOMETERS.toKilometers(10), closeTo(10, 0.000));
assertThat(DistanceUnit.KILOMETERS.toMiles(10), closeTo(6.21371192, 0.001));
assertThat(DistanceUnit.KILOMETERS.toKilometers(10), closeTo(10, 0.001));
}
}