-
Notifications
You must be signed in to change notification settings - Fork 119
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add LocationLayer unit tests #631
Conversation
50f11b9
to
d414782
Compare
float gpsBearing = 2f; | ||
layer.onNewGpsBearingValue(gpsBearing); | ||
|
||
verify(locationFeature).addNumberProperty(anyString(), eq(gpsBearing)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we use the properties constants instead of anyString()
?
float gpsBearing = 2f; | ||
layer.onNewGpsBearingValue(gpsBearing); | ||
|
||
verify(locationFeature, times(0)).addNumberProperty(anyString(), eq(gpsBearing)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we use the properties constants instead of anyString()
?
float compassBearing = 2f; | ||
layer.onNewCompassBearingValue(compassBearing); | ||
|
||
verify(locationFeature).addNumberProperty(anyString(), eq(compassBearing)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we use the properties constants instead of anyString()
?
float compassBearing = 2f; | ||
layer.onNewCompassBearingValue(compassBearing); | ||
|
||
verify(locationFeature, times(0)).addNumberProperty(anyString(), eq(compassBearing)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we use the properties constants instead of anyString()
?
float accuracyRadiusValue = 2f; | ||
layer.onNewAccuracyRadiusValue(accuracyRadiusValue); | ||
|
||
verify(locationFeature).addNumberProperty(anyString(), eq(accuracyRadiusValue)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we use the properties constants instead of anyString()
?
float accuracyRadiusValue = 2f; | ||
layer.onNewAccuracyRadiusValue(accuracyRadiusValue); | ||
|
||
verify(locationFeature, times(0)).addNumberProperty(anyString(), eq(accuracyRadiusValue)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we use the properties constants instead of anyString()
?
0c5c38c
to
f286b4a
Compare
f286b4a
to
40a5638
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚢
No description provided.