Skip to content

Conversation

@tobrun
Copy link
Member

@tobrun tobrun commented Jan 30, 2019

Closes #831, next to addressing the naming, this PR adds some tests related to adding/removing listeners.

@tobrun tobrun added this to the annotation-0.5.0 milestone Jan 30, 2019
@tobrun tobrun self-assigned this Jan 30, 2019
@tobrun tobrun requested a review from LukasPaczos January 30, 2019 12:14
}

@VisibleForTesting
List<D> getDragClickListeners() {
Copy link
Contributor

Choose a reason for hiding this comment

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

This should be getDragListeners.

circleManager = new CircleManager(mapView, mapboxMap, style, coreElementProvider, null, draggableAnnotationController);
assertTrue(circleManager.getClickListeners().isEmpty());
circleManager.addClickListener(listener);
assertFalse(circleManager.getClickListeners().isEmpty());
Copy link
Contributor

Choose a reason for hiding this comment

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

How about contains check?

@tobrun tobrun force-pushed the tvn-rename-remove-drag branch from 3e769d7 to ac065db Compare February 5, 2019 09:28
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.

:shipit:

@tobrun tobrun merged commit 0d90cc8 into master Feb 5, 2019
@tobrun tobrun deleted the tvn-rename-remove-drag branch February 5, 2019 09:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants