@Override public boolean isAdvertised() { return delegate.isAdvertised(); }
@Test public void testPutNonDestructive() throws Exception { CoverageInfo c = catalog.getCoverageByName("wcs", "BlueMarble"); assertTrue(c.isEnabled()); boolean isAdvertised = c.isAdvertised(); String xml = "<coverage>" + "<title>new title</title>" + "</coverage>"; MockHttpServletResponse response = putAsServletResponse( RestBaseController.ROOT_PATH + "/workspaces/wcs/coveragestores/BlueMarble/coverages/BlueMarble", xml, "text/xml"); assertEquals(200, response.getStatus()); c = catalog.getCoverageByName("wcs", "BlueMarble"); assertTrue(c.isEnabled()); assertEquals(isAdvertised, c.isAdvertised()); }
/** * This method returns {@code true} in case we have POSTed a Coverage object with the name only, * as an instance when configuring a new coverage which has just been harvested. * * @param coverage */ private boolean isNewCoverage(CoverageInfo coverage) { return coverage.getName() != null && (coverage.isAdvertised()) && (!coverage.isEnabled()) && (coverage.getAlias() == null) && (coverage.getCRS() == null) && (coverage.getDefaultInterpolationMethod() == null) && (coverage.getDescription() == null) && (coverage.getDimensions() == null) && (coverage.getGrid() == null) && (coverage.getInterpolationMethods() == null) && (coverage.getKeywords() == null) && (coverage.getLatLonBoundingBox() == null) && (coverage.getMetadata() == null) && (coverage.getNativeBoundingBox() == null) && (coverage.getNativeCRS() == null) && (coverage.getNativeFormat() == null) && (coverage.getProjectionPolicy() == null) && (coverage.getSRS() == null) && (coverage.getResponseSRS() == null) && (coverage.getRequestSRS() == null); }