UrlTileSource: customize api key name #49

This commit is contained in:
Emux
2017-08-11 21:17:43 +03:00
parent 8bb63c875f
commit 2555fea5da
4 changed files with 15 additions and 5 deletions

View File

@@ -1,5 +1,6 @@
/*
* Copyright 2016 devemux86
* Copyright 2013 Hannes Janetzek
* Copyright 2016-2017 devemux86
*
* This file is part of the OpenScienceMap project (http://www.opensciencemap.org).
*
@@ -34,7 +35,7 @@ public class UrlTileSourceTest {
@Test
public void setApiKey_shouldAppendApiKey() throws Exception {
tileSource.setApiKey("testkey");
assertThat(tileSource.getTileUrl(new Tile(0, 0, (byte) 0))).endsWith("?api_key=testkey");
assertThat(tileSource.getTileUrl(new Tile(0, 0, (byte) 0))).endsWith("?key=testkey");
}
@Test