@@ -394,9 +394,9 @@ public void testGetLayers() throws Exception {
394394 assertThat (
395395 doc ,
396396 hasXPath (
397- "/layers/layer[name/text()='topp: states']/atom:link/@href" ,
397+ "/layers/layer[name/text()='states']/atom:link/@href" ,
398398 equalTo (jetty .getUri ()
399- .resolve ("/geowebcache/rest/layers/topp: states.xml" )
399+ .resolve ("/geowebcache/rest/layers/states.xml" )
400400 .toString ())));
401401 assertThat (
402402 doc ,
@@ -557,8 +557,7 @@ public void testGetLayer() throws Exception {
557557 admin .getClient (), equalTo (200 ), doc -> {
558558 assertThat (doc , hasXPath ("/wmsLayer/name" , equalTo ("img states" )));
559559 assertThat (
560- doc ,
561- hasXPath ("/wmsLayer/wmsUrl/string" , equalTo ("http://localhost:8080/geoserver/topp/wms?" )));
560+ doc , hasXPath ("/wmsLayer/wmsUrl/string" , equalTo ("http://localhost:8080/geoserver/wms?" )));
562561 assertThat (doc , hasXPath ("/wmsLayer/wmsLayers" , equalTo ("nurc:Img_Sample,topp:states" )));
563562 });
564563 }
@@ -1024,15 +1023,15 @@ public void testSeedPost() throws Exception {
10241023 "</seedRequest>" ;
10251024
10261025 try (CloseableHttpResponse response =
1027- handlePost (URI .create ("/geowebcache/rest/seed/topp: states.xml" ), admin .getClient (), seedLayer )) {
1026+ handlePost (URI .create ("/geowebcache/rest/seed/states.xml" ), admin .getClient (), seedLayer )) {
10281027 assertEquals (200 , response .getStatusLine ().getStatusCode ());
10291028 }
10301029 }
10311030
10321031 @ Test
10331032 public void testSeedGet () throws Exception {
10341033 try (CloseableHttpResponse response =
1035- handleGet (URI .create ("/geowebcache/rest/seed/topp: states" ), admin .getClient ())) {
1034+ handleGet (URI .create ("/geowebcache/rest/seed/states" ), admin .getClient ())) {
10361035 assertEquals (200 , response .getStatusLine ().getStatusCode ());
10371036 }
10381037 }
@@ -1047,7 +1046,7 @@ public void testSeedGetNoLayer() throws Exception {
10471046 @ Test
10481047 public void testSeedGetSeedForm () throws Exception {
10491048 try (CloseableHttpResponse response =
1050- handleGet (URI .create ("/geowebcache/rest/seed/topp: states" ), admin .getClient ())) {
1049+ handleGet (URI .create ("/geowebcache/rest/seed/states" ), admin .getClient ())) {
10511050 assertEquals (200 , response .getStatusLine ().getStatusCode ());
10521051 }
10531052 }
@@ -1062,15 +1061,15 @@ public void testSeedGetJson() throws Exception {
10621061 @ Test
10631062 public void testSeedGetLayerJson () throws Exception {
10641063 try (CloseableHttpResponse response =
1065- handleGet (URI .create ("/geowebcache/rest/seed/topp: states.json" ), admin .getClient ())) {
1064+ handleGet (URI .create ("/geowebcache/rest/seed/states.json" ), admin .getClient ())) {
10661065 assertEquals (200 , response .getStatusLine ().getStatusCode ());
10671066 }
10681067 }
10691068
10701069 @ Test
10711070 public void testSeedGetLayerXml () throws Exception {
10721071 try (CloseableHttpResponse response =
1073- handleGet (URI .create ("/geowebcache/rest/seed/topp: states.xml" ), admin .getClient ())) {
1072+ handleGet (URI .create ("/geowebcache/rest/seed/states.xml" ), admin .getClient ())) {
10741073 assertEquals (200 , response .getStatusLine ().getStatusCode ());
10751074 }
10761075 }
@@ -1088,7 +1087,7 @@ public void testKillAll() throws Exception {
10881087 public void testLayerKillAll () throws Exception {
10891088 String killCommand = "kill_all=all" ;
10901089 try (CloseableHttpResponse response =
1091- handlePost (URI .create ("/geowebcache/rest/seed/topp: states" ), admin .getClient (), killCommand )) {
1090+ handlePost (URI .create ("/geowebcache/rest/seed/states" ), admin .getClient (), killCommand )) {
10921091 assertEquals (200 , response .getStatusLine ().getStatusCode ());
10931092 }
10941093 }
0 commit comments