Commit 2eb798ca authored by Luc Maisonobe's avatar Luc Maisonobe
Browse files

Fixed warnings generated in tests since Eclipse Oxygen.

The tests were intentional, as they check equals method behaved
correctly when passed wrong type objects.
parent 2f572157
......@@ -43,9 +43,10 @@ import org.orekit.time.TimeScalesFactory;
public class GeoMagneticFieldTest {
/** maximum degree and order used in testing {@link Geoid}. */
@SuppressWarnings("javadoc")
private static final int maxOrder = 360, maxDegree = 360;
/** maximum degree used in testing {@link Geoid}. */
private static final int maxOrder = 360;
/** maximum order used in testing {@link Geoid}. */
private static final int maxDegree = 360;
/** The WGS84 reference ellipsoid. */
private static ReferenceEllipsoid WGS84 = new ReferenceEllipsoid(
6378137.00, 1 / 298.257223563, FramesFactory.getGCRF(),
......
......@@ -53,9 +53,10 @@ import static org.orekit.OrekitMatchers.vectorCloseTo;
*/
public class GeoidTest {
/** maximum degree and order used in testing {@link Geoid}. */
@SuppressWarnings("javadoc")
private static final int maxOrder = 360, maxDegree = 360;
/** maximum degree used in testing {@link Geoid}. */
private static final int maxOrder = 360;
/** maximum order used in testing {@link Geoid}. */
private static final int maxDegree = 360;
/** The WGS84 reference ellipsoid. */
private static ReferenceEllipsoid WGS84 = new ReferenceEllipsoid(
6378137.00, 1 / 298.257223563, FramesFactory.getGCRF(),
......
......@@ -375,6 +375,7 @@ public class AbsoluteDateTest {
}
}
@SuppressWarnings("unlikely-arg-type")
@Test
public void testEquals() {
AbsoluteDate d1 =
......
......@@ -226,6 +226,7 @@ public class DateComponentsTest {
Assert.assertEquals(-5377, DateComponents.parseDate("1985-W15-5").getJ2000Day());
}
@SuppressWarnings("unlikely-arg-type")
@Test
public void testComparisons() {
DateComponents[][] dates = {
......
......@@ -23,6 +23,7 @@ import org.junit.Test;
public class DateTimeComponentsTest {
@SuppressWarnings("unlikely-arg-type")
@Test
public void testComparisons() {
DateTimeComponents[] dates = {
......
......@@ -592,6 +592,7 @@ public class FieldAbsoluteDateTest {
}
}
@SuppressWarnings("unlikely-arg-type")
private <T extends RealFieldElement<T>> void doTestEquals(final Field<T> field) {
FieldAbsoluteDate<T> d1 =
new FieldAbsoluteDate<>(field, new DateComponents(2006, 2, 25),
......
......@@ -137,6 +137,7 @@ public class TimeComponentsTest {
Assert.assertEquals(60, TimeComponents.parseTime("23:59:59+01:00").getMinutesFromUTC());
}
@SuppressWarnings("unlikely-arg-type")
@Test
public void testComparisons() {
TimeComponents[] times = {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment