@Test public void testProcessKey() { String[] keys = {"api-key", "request"}; String[] expected = {"api-key", "REQUEST"}; for (int i = 0; i < keys.length; i++) { String obs = WMTSSpecification.processKey(keys[i]); assertEquals(expected[i], obs); } }
public static String processKey(String key) { if (keywords.contains(key.toLowerCase())) return key.trim().toUpperCase(); else return key; }
WMTSSpecification extends Specification { public static String processKey(String key) { if (keywords.contains(key.toLowerCase())) return key.trim().toUpperCase(); else return key; } }
WMTSSpecification extends Specification { public static String processKey(String key) { if (keywords.contains(key.toLowerCase())) return key.trim().toUpperCase(); else return key; } WMTSSpecification(); }
WMTSSpecification extends Specification { public static String processKey(String key) { if (keywords.contains(key.toLowerCase())) return key.trim().toUpperCase(); else return key; } WMTSSpecification(); @Override String getVersion(); @Override GetCapabilitiesRequest createGetCapabilitiesRequest(URL server); GetTileRequest createGetTileRequest(
            URL server, Properties props, WMTSCapabilities caps); GetTileRequest createGetTileRequest(
            URL server, Properties props, WMTSCapabilities caps, HTTPClient client); static String processKey(String key); }
WMTSSpecification extends Specification { public static String processKey(String key) { if (keywords.contains(key.toLowerCase())) return key.trim().toUpperCase(); else return key; } WMTSSpecification(); @Override String getVersion(); @Override GetCapabilitiesRequest createGetCapabilitiesRequest(URL server); GetTileRequest createGetTileRequest(
            URL server, Properties props, WMTSCapabilities caps); GetTileRequest createGetTileRequest(
            URL server, Properties props, WMTSCapabilities caps, HTTPClient client); static String processKey(String key); static final String WMTS_VERSION; }