Skip to content

Commit

Permalink
Merge branch 'test_improvements'
Browse files Browse the repository at this point in the history
  • Loading branch information
simonpoole committed Dec 8, 2024
2 parents b9f946f + 8daaef2 commit ef54e09
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/androidTest/java/de/blau/android/gpx/GpxTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,11 @@ public void setup() {
Map map = main.getMap();
map.setPrefs(main, prefs);
prefs.enableBarometricHeight(false);

if (main.getTracker() != null) {
main.getTracker().stopTracking(true);
main.invalidateOptionsMenu();
}

App.getDelegator().reset(true);
try (AdvancedPrefDatabase db = new AdvancedPrefDatabase(main)) {
db.deleteLayer(LayerType.GPX, null);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ public void validationDisable() {
Way t = (Way) App.getDelegator().getOsmElement(Way.NAME, 96291968L);
assertNotNull(t);
assertTrue(t.hasTag("amenity", "school"));
t.resetHasProblem();
assertEquals(Validator.MISSING_TAG, t.hasProblem(main, App.getDefaultValidator(main)));

// toggle off
Expand Down

0 comments on commit ef54e09

Please sign in to comment.