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/test/unit/org/openstreetmap/josm/testutils/TileSourceRule.java
+++ b/test/unit/org/openstreetmap/josm/testutils/TileSourceRule.java
@@ -216,6 +216,15 @@ public class TileSourceRule extends WireMockRule {
     }
 
     /**
+     * Get the tile sources served by this TileSourceRule.
+     *
+     * @return an unmodifiable list of the tile sources served by this TileSourceRule
+     */
+    public List<ConstSource> getSourcesList() {
+        return Collections.unmodifiableList(this.sourcesList);
+    }
+
+    /**
      * A junit-rule {@code apply} method exposed separately to allow a chaining rule to put this much earlier in
      * the test's initialization routine. The idea being to allow WireMock's web server to be starting up while other
      * necessary initialization is taking place.
-- 
2.11.0

