Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix test not to pick a random style, it ends up failing on some machines

  • Loading branch information...
commit d8f5619f88039a4ee4fd1c938d03b1aee3467b1e 1 parent 5b04741
@aaime aaime authored
View
4 src/wms/src/test/java/org/geoserver/wms/map/RenderedImageMapOutputFormatTest.java
@@ -4,7 +4,7 @@
*/
package org.geoserver.wms.map;
-import static org.geoserver.data.test.MockData.STREAMS;
+import static org.geoserver.data.test.SystemTestData.STREAMS;
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.fail;
@@ -289,7 +289,7 @@ public SimpleFeatureCollection getFeatures(Query query) throws IOException {
}
};
- StyleInfo someStyle = getCatalog().getStyles().get(0);
+ StyleInfo someStyle = getCatalog().getStyleByName("line");
map.addLayer(new FeatureLayer(source, someStyle.getStyle()));
request.setFormat(getMapFormat());
RenderedImageMap imageMap = this.rasterMapProducer.produceMap(map);
Please sign in to comment.
Something went wrong with that request. Please try again.