-
Notifications
You must be signed in to change notification settings - Fork 318
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
Check for valid name property value in MapWayname #1031
Conversation
e17e993
to
b14a7b4
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.
Minor thing not blocking the PR but definitely worth 👀
@@ -72,6 +73,20 @@ public void onRoadsReturnedFromQuery_visibilityIsSetToTrueAndLayoutIconAdded() { | |||
verify(waynameLayer, times(1)).setProperties(any(PropertyValue.class)); | |||
} | |||
|
|||
@Test | |||
public void onFeatureWithoutNamePropertyReturned_updateIsIgnored() { |
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.
❤️
@@ -71,12 +71,15 @@ public void updateDefaultMapTopPadding(int topPadding) { | |||
|
|||
private void updateLayerWithRoadLabelFeatures(List<Feature> roads, SymbolLayer waynameLayer) { | |||
if (!roads.isEmpty()) { |
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.
IMO updateLayerWithRoadLabelFeatures
is getting too long.
What about extracting blocks of code into well-named private
methods and simplifying conditional expressions somehow?
b14a7b4
to
50a3985
Compare
50a3985
to
33b4ee8
Compare
Closes #1029