maplibre / maplibre/maplibre-plugins-android

Tests fail: Wanted but not invoked: geoJsonSource.setGeoJson

Open
#17 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
Java
Stars
50
Forks
33
PR merge metrics
No merged PRs in 30d

Description

After merging #12, the tests fail: https://github.com/maplibre/maplibre-plugins-android/actions/runs/4255578822/jobs/7403370903

```
com.mapbox.mapboxsdk.plugins.annotation.FillManagerTest > testInitialization FAILED
Wanted but not invoked:
geoJsonSource.setGeoJson(

);
-> at com.mapbox.mapboxsdk.style.sources.GeoJsonSource.setGeoJson(GeoJsonSource.java:291)
Actually, there were zero interactions with this mock.
at com.mapbox.mapboxsdk.style.sources.GeoJsonSource.setGeoJson(GeoJsonSource.java:291)
at com.mapbox.mapboxsdk.plugins.annotation.FillManagerTest.testInitialization(FillManagerTest.java:68)
```

We should set up CI for pull requests so that we avoid this in the future.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with FillManagerTest.java at line 68 and reproduce the reported testInitialization failure from the linked CI job. Inspect the repository's existing CI configuration, then ensure pull requests run the relevant tests and that the failing test passes.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
ci-cd, testing
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.