Package it.geosolutions.geoserver.rest.decoder

Examples of it.geosolutions.geoserver.rest.decoder.RESTLayerList


   */
  @Test
  public void testGetLayers() {
        if(!enabled()) return;

    RESTLayerList result = reader.getLayers();
    assertNotNull(result);
//        assertEquals(/*CHANGEME*/19, result.getChildren("layer").size()); // value in default gs installation

//        System.out.println("Layers:" + result.getChildren("layer").size());
        System.out.println("Layers:" + result.size());
        System.out.print("Layers:" );
        for (NameLinkElem shlayer : result) {
            assertNotNull(shlayer.getName());
            System.out.print(shlayer.getName() + " ");
        }
View Full Code Here


                for (RESTPublished published : publishedList) {
                    assertEquals("layer", published.getType());
                    assertTrue("boundaries".equals(published.getName()) || "cities".equals(published.getName()));
                }                           
            } else {
                RESTLayerList layerList = groupReader.getLayerList();
                assertEquals(2, layerList.size());
                for (NameLinkElem layer : layerList) {
                    assertTrue("boundaries".equals(layer.getName()) || "cities".equals(layer.getName()));
                }                                           
            }
        } finally {
View Full Code Here

                for (RESTPublished published : publishedList) {
                    assertEquals("layer", published.getType());
                    assertTrue("boundaries".equals(published.getName()) || "cities".equals(published.getName()));
                }                           
            } else {
                RESTLayerList layerList = groupReader.getLayerList();
                assertEquals(2, layerList.size());
                for (NameLinkElem layer : layerList) {
                    assertTrue("boundaries".equals(layer.getName()) || "cities".equals(layer.getName()));
                }   
            }
        } finally {
View Full Code Here

                for (RESTPublished published : publishedList) {
                    assertEquals("layer", published.getType());
                    assertTrue("boundaries".equals(published.getName()));
                }                           
            } else {
                RESTLayerList layerList = groupReader.getLayerList();
                assertEquals(1, layerList.size());
                for (NameLinkElem layer : layerList) {
                    assertTrue("boundaries".equals(layer.getName()));
                }                                           
            }
        } finally {
View Full Code Here

                for (RESTPublished published : publishedList) {
                    assertEquals("layer", published.getType());
                    assertTrue("boundaries".equals(published.getName()));
                }                           
            } else {
                RESTLayerList layerList = groupReader.getLayerList();
                assertEquals(1, layerList.size());
                for (NameLinkElem layer : layerList) {
                    assertTrue("boundaries".equals(layer.getName()));
                }                                           
            }
        } finally {
View Full Code Here

TOP

Related Classes of it.geosolutions.geoserver.rest.decoder.RESTLayerList

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.