Skip to content
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

Merged
merged 1 commit into from
Aug 29, 2018
Merged

Add LocationLayer unit tests #631

merged 1 commit into from
Aug 29, 2018

Conversation

danesfeder
Copy link
Contributor

No description provided.

@danesfeder danesfeder added ready for review When your PR has been personally reviewed, its time for an external contributors to approve location-layer-plugin Issues that deal with the location layer module labels Aug 28, 2018
@danesfeder danesfeder self-assigned this Aug 28, 2018
@danesfeder danesfeder force-pushed the dan-locationlayer-tests branch 3 times, most recently from 50f11b9 to d414782 Compare August 28, 2018 13:42
float gpsBearing = 2f;
layer.onNewGpsBearingValue(gpsBearing);

verify(locationFeature).addNumberProperty(anyString(), eq(gpsBearing));
Copy link
Contributor

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));
Copy link
Contributor

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));
Copy link
Contributor

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));
Copy link
Contributor

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));
Copy link
Contributor

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));
Copy link
Contributor

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()?

@danesfeder danesfeder force-pushed the dan-locationlayer-tests branch 3 times, most recently from 0c5c38c to f286b4a Compare August 28, 2018 14:43
@danesfeder danesfeder force-pushed the dan-locationlayer-tests branch from f286b4a to 40a5638 Compare August 29, 2018 08:35
Copy link
Contributor

@LukasPaczos LukasPaczos left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚢

@danesfeder danesfeder merged commit 40977d5 into master Aug 29, 2018
@danesfeder danesfeder deleted the dan-locationlayer-tests branch August 29, 2018 09:07
@danesfeder danesfeder mentioned this pull request Aug 31, 2018
16 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
location-layer-plugin Issues that deal with the location layer module ready for review When your PR has been personally reviewed, its time for an external contributors to approve
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants