Ticket #16010: v1-0001-TileSourceRule-add-getSourcesList-accessor-method.patch

File v1-0001-TileSourceRule-add-getSourcesList-accessor-method.patch, 1.3 KB (added by ris, 11 months ago)
  • test/unit/org/openstreetmap/josm/testutils/TileSourceRule.java

    From d99985f19652101c31bbbfdc68a2553cd128fb05 Mon Sep 17 00:00:00 2001
    From: Robert Scott <code@humanleg.org.uk>
    Date: Sat, 28 Jul 2018 23:26:40 +0100
    Subject: [PATCH v1 1/2] TileSourceRule: add getSourcesList() accessor method
    
    ---
     test/unit/org/openstreetmap/josm/testutils/TileSourceRule.java | 9 +++++++++
     1 file changed, 9 insertions(+)
    
    diff --git a/test/unit/org/openstreetmap/josm/testutils/TileSourceRule.java b/test/unit/org/openstreetmap/josm/testutils/TileSourceRule.java
    index d43c4120c..dc9b783d4 100644
    a b public class TileSourceRule extends WireMockRule { 
    216216    }
    217217
    218218    /**
     219     * Get the tile sources served by this TileSourceRule.
     220     *
     221     * @return an unmodifiable list of the tile sources served by this TileSourceRule
     222     */
     223    public List<ConstSource> getSourcesList() {
     224        return Collections.unmodifiableList(this.sourcesList);
     225    }
     226
     227    /**
    219228     * A junit-rule {@code apply} method exposed separately to allow a chaining rule to put this much earlier in
    220229     * the test's initialization routine. The idea being to allow WireMock's web server to be starting up while other
    221230     * necessary initialization is taking place.