public void setTitle(String title) { delegate.setTitle(title); }
ftinfo.setTitle(rinfo != null ? rinfo.getTitle() : ftinfo.getName());
@Test public void testModifyFeatureType() throws Exception { testAddFeatureType(); FeatureTypeInfo ft = catalog.getFeatureTypeByName("bar", "foo"); ft.setTitle("fooTitle"); catalog.save(ft); File f = new File( testData.getDataDirectoryRoot(), "workspaces/acme/foostore/foo/featuretype.xml"); Document dom = dom(f); assertXpathEvaluatesTo("fooTitle", "/featureType/title", dom); }
featureType.setProjectionPolicy(pp); featureType.setTitle(ftInfoReader.title()); featureType.setAbstract(ftInfoReader.abstrct()); for (String kw : ftInfoReader.keywords()) {
@Test public void testFullTextSearch() { ft.setTitle("Global .5 deg Air Temperature [C]"); cv.setTitle("Global .5 deg Dewpoint Depression [C]");
@Test public void testCacheClearing() throws IOException { cleared = false; ResourcePool pool = new ResourcePool(getCatalog()) { @Override public void clear(FeatureTypeInfo info) { cleared = true; super.clear(info); } }; FeatureTypeInfo info = getCatalog() .getFeatureTypeByName( MockData.LAKES.getNamespaceURI(), MockData.LAKES.getLocalPart()); assertNotNull(pool.getFeatureType(info)); info.setTitle("changed"); assertFalse(cleared); getCatalog().save(info); assertTrue(cleared); cleared = false; assertNotNull(pool.getFeatureType(info)); for (LayerInfo l : getCatalog().getLayers(info)) { getCatalog().remove(l); } getCatalog().remove(info); assertTrue(cleared); }
featureType.setName(LayerProperty.NAME.get(props, name)); featureType.setNativeName(FilenameUtils.getBaseName(filename)); featureType.setTitle(name); featureType.setAbstract("abstract about " + name);
ftinfo.setNativeName(name); ftinfo.setName(name); ftinfo.setTitle(name); ftinfo.setNamespace(catalog.getDefaultNamespace()); List<AttributeTypeInfo> attributes = ftinfo.getAttributes();
ftinfo.setNativeName(name); ftinfo.setName(name); ftinfo.setTitle(name); ftinfo.setNamespace(catalog.getDefaultNamespace()); List<AttributeTypeInfo> attributes = ftinfo.getAttributes();
@Override protected void onSetUp(SystemTestData testData) { super.onSetUp(testData); FeatureTypeInfo basicPolygons = getCatalog().getFeatureTypeByName(getLayerId(MockData.BASIC_POLYGONS)); basicPolygons.setTitle(BASIC_POLYGONS_TITLE); basicPolygons.setAbstract(BASIC_POLYGONS_DESCRIPTION); getCatalog().save(basicPolygons); }
ftinfo.setNativeName(name); ftinfo.setName(name); ftinfo.setTitle(name); ftinfo.setNamespace(catalog.getDefaultNamespace()); List<AttributeTypeInfo> attributes = ftinfo.getAttributes();
@Test public void testLayoutLegendNPE() throws Exception { // set the title to null FeatureTypeInfo states = getCatalog().getFeatureTypeByName("states"); states.setTitle(null); getCatalog().save(states); // add the layout to the data dir File layouts = getDataDirectory().findOrCreateDir("layouts"); URL layout = GetMapIntegrationTest.class.getResource("test-layout.xml"); FileUtils.copyURLToFile(layout, new File(layouts, "test-layout.xml")); // get a map with the layout, it used to NPE BufferedImage image = getAsImage( "wms?bbox=" + bbox + "&styles=Population&layers=" + layers + "&Format=image/png" + "&request=GetMap" + "&width=550" + "&height=250" + "&srs=EPSG:4326&format_options=layout:test-layout", "image/png"); // RenderedImageBrowser.showChain(image); // check the pixels that should be in the legend assertPixel(image, 12, 16, Color.RED); assertPixel(image, 12, 32, Color.GREEN); assertPixel(image, 12, 52, Color.BLUE); }
@Test public void testLayoutLegendStyleTitle() throws Exception { // set the title to null FeatureTypeInfo states = getCatalog().getFeatureTypeByName("states"); states.setTitle(null); getCatalog().save(states); // add the layout to the data dir File layouts = getDataDirectory().findOrCreateDir("layouts"); URL layout = GetMapIntegrationTest.class.getResource("test-layout-sldtitle.xml"); FileUtils.copyURLToFile(layout, new File(layouts, "test-layout-sldtitle.xml")); // get a map with the layout, it used to NPE BufferedImage image = getAsImage( "wms?bbox=" + bbox + "&styles=Population&layers=" + layers + "&Format=image/png" + "&request=GetMap" + "&width=550" + "&height=250" + "&srs=EPSG:4326&format_options=layout:test-layout-sldtitle", "image/png"); // RenderedImageBrowser.showChain(image); // check the pixels that should be in the legend assertPixel(image, 12, 36, Color.RED); assertPixel(image, 12, 52, Color.GREEN); assertPixel(image, 12, 72, Color.BLUE); }
states.setTitle(null); getCatalog().save(states);
typeInfo.setEnabled(_typeInfo.isEnabled()); typeInfo.setAdvertised(_typeInfo.isAdvertised()); typeInfo.setTitle(_typeInfo.getTitle()); typeInfo.setDescription(_typeInfo.getDescription()); typeInfo.setAbstract(_typeInfo.getAbstract());
featureType.setNativeName("featureType-NativeName"); featureType.setNamespace(namespace); featureType.setTitle("featureType-Title"); featureType.setDescription("featureType-Description"); featureType.setAbstract("featureType-Abstract");