Examples of RESTStyleList


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

    Assert.assertEquals("capitals", layer.getDefaultStyle());
    }
 
  @Test
  public void testStyles() {
    RESTStyleList styles = layer.getStyles();
    Assert.assertTrue(styles.size() == 2);
    Assert.assertEquals("green", styles.get(0).getName());
    Assert.assertEquals("blue", styles.get(1).getName());
  }
View Full Code Here

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

    /**
     *  workaround: geoserver does not delete styles inside workspaces
     * https://jira.codehaus.org/browse/GEOS-5986
     */
    private void deleteStylesForWorkspace(String workspace) {
        RESTStyleList styles = styleManager.getStyles(workspace);
        if (styles==null)
            return;
        for (NameLinkElem nameLinkElem : styles) {
            removeStyleInWorkspace(workspace, nameLinkElem.getName(), true);
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.