Skip to content
Snippets Groups Projects
Unverified Commit 8fa5b446 authored by User expired's avatar User expired
Browse files

fixed broken tests

parent 5d6d6f4e
No related branches found
No related tags found
No related merge requests found
Upcoming version: Upcoming version:
----------------- -----------------
- fixed broken tests (Nikolaus Krismer)
- slightly reworked speed estimatino (added abstract classes to improve class hierarchy) (Nikolaus Krismer) - slightly reworked speed estimatino (added abstract classes to improve class hierarchy) (Nikolaus Krismer)
- also changed speed estimation for cycling mode (Nikolaus Krismer) - also changed speed estimation for cycling mode (Nikolaus Krismer)
- fixed problem in ElevationWalkingEstimation and increased ignorable angles to 2 degrees (Nikolaus Krismer) - fixed problem in ElevationWalkingEstimation and increased ignorable angles to 2 degrees (Nikolaus Krismer)
......
...@@ -18,61 +18,63 @@ public class EqualityTest { ...@@ -18,61 +18,63 @@ public class EqualityTest {
.usingGetClass() .usingGetClass()
.suppress(Warning.ALL_FIELDS_SHOULD_BE_USED) .suppress(Warning.ALL_FIELDS_SHOULD_BE_USED)
.suppress(Warning.INHERITED_DIRECTLY_FROM_OBJECT) .suppress(Warning.INHERITED_DIRECTLY_FROM_OBJECT)
.suppress(Warning.NONFINAL_FIELDS)
.verify(); .verify();
} }
@Test @Test
public void testElevationWalking() { public void testElevationWalking() {
EqualsVerifier.forClass(ElevationWalkingEstimation.class) EqualsVerifier.forClass(ElevationWalkingEstimation.class)
.usingGetClass() .usingGetClass()
.suppress(Warning.ALL_FIELDS_SHOULD_BE_USED) .suppress(Warning.ALL_FIELDS_SHOULD_BE_USED)
.suppress(Warning.INHERITED_DIRECTLY_FROM_OBJECT) .suppress(Warning.INHERITED_DIRECTLY_FROM_OBJECT)
.verify(); .suppress(Warning.NONFINAL_FIELDS)
.verify();
} }
@Test @Test
public void testNoop() { public void testNoop() {
EqualsVerifier.forClass(NoopSpeedEstimation.class) EqualsVerifier.forClass(NoopSpeedEstimation.class)
.usingGetClass() .usingGetClass()
.suppress(Warning.ALL_FIELDS_SHOULD_BE_USED) .suppress(Warning.ALL_FIELDS_SHOULD_BE_USED)
.suppress(Warning.INHERITED_DIRECTLY_FROM_OBJECT) .suppress(Warning.INHERITED_DIRECTLY_FROM_OBJECT)
.verify(); .verify();
} }
@Test @Test
public void testSimple() { public void testSimple() {
EqualsVerifier.forClass(SimpleSpeedEstimation.class) EqualsVerifier.forClass(SimpleSpeedEstimation.class)
.usingGetClass() .usingGetClass()
.suppress(Warning.ALL_FIELDS_SHOULD_BE_USED) .suppress(Warning.ALL_FIELDS_SHOULD_BE_USED)
.suppress(Warning.INHERITED_DIRECTLY_FROM_OBJECT) .suppress(Warning.INHERITED_DIRECTLY_FROM_OBJECT)
.verify(); .verify();
} }
@Test @Test
public void testUserProfile() { public void testUserProfile() {
EqualsVerifier.forClass(UserProfileEstimation.class) EqualsVerifier.forClass(UserProfileEstimation.class)
.usingGetClass() .usingGetClass()
.suppress(Warning.ALL_FIELDS_SHOULD_BE_USED) .suppress(Warning.ALL_FIELDS_SHOULD_BE_USED)
.suppress(Warning.INHERITED_DIRECTLY_FROM_OBJECT) .suppress(Warning.INHERITED_DIRECTLY_FROM_OBJECT)
.verify(); .verify();
} }
@Test @Test
public void testWayTypeBike() { public void testWayTypeBike() {
EqualsVerifier.forClass(WayTypeCyclingEstimation.class) EqualsVerifier.forClass(WayTypeCyclingEstimation.class)
.usingGetClass() .usingGetClass()
.suppress(Warning.ALL_FIELDS_SHOULD_BE_USED) .suppress(Warning.ALL_FIELDS_SHOULD_BE_USED)
.suppress(Warning.INHERITED_DIRECTLY_FROM_OBJECT) .suppress(Warning.INHERITED_DIRECTLY_FROM_OBJECT)
.verify(); .verify();
} }
@Test @Test
public void testWayTypeWalking() { public void testWayTypeWalking() {
EqualsVerifier.forClass(WayTypeWalkingEstimation.class) EqualsVerifier.forClass(WayTypeWalkingEstimation.class)
.usingGetClass() .usingGetClass()
.suppress(Warning.ALL_FIELDS_SHOULD_BE_USED) .suppress(Warning.ALL_FIELDS_SHOULD_BE_USED)
.suppress(Warning.INHERITED_DIRECTLY_FROM_OBJECT) .suppress(Warning.INHERITED_DIRECTLY_FROM_OBJECT)
.verify(); .verify();
} }
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment