FeatureTypeInfoImpl featureTypeInfo = new FeatureTypeInfoImpl(catalog);
featureTypeInfo.setNamespace(ns);
featureTypeInfo.setName("states");
featureTypeInfo.setStore(dataStoreInfo);
LayerInfoImpl layerInfo = new LayerInfoImpl();
layerInfo.setResource(featureTypeInfo);
layerInfo.setId("states");
layerInfo.setName("states");
catalog.add(ns);
catalog.add(workspace);
catalog.add(dataStoreInfo);
catalog.add(featureTypeInfo);
catalog.add(layerInfo);
params.put("VERSION", "1.1.1");
params.put("LAYERS", "topp:states");
DescribeLayerRequest describeRequest = getRequest(params);
assertNotNull(describeRequest);
assertNotNull(describeRequest.getLayers());
assertEquals(1, describeRequest.getLayers().size());
CoverageStoreInfoImpl coverageStoreInfo = new CoverageStoreInfoImpl(
catalog);
coverageStoreInfo.setId("coverageStore");
coverageStoreInfo.setName("coverageStore");
coverageStoreInfo.setWorkspace(workspace);
CoverageInfoImpl coverageInfo = new CoverageInfoImpl(catalog);
coverageInfo.setNamespace(ns);
coverageInfo.setName("fakeCoverage");
coverageInfo.setStore(coverageStoreInfo);
layerInfo = new LayerInfoImpl();
layerInfo.setResource(coverageInfo);
layerInfo.setId("fakeCoverage");
layerInfo.setName("fakeCoverage");
catalog.add(coverageStoreInfo);
catalog.add(coverageInfo);
catalog.add(layerInfo);