Commit d8f5619f authored by Andrea Aime's avatar Andrea Aime
Browse files

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

parent 5b04741d
......@@ -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 class RenderedImageMapOutputFormatTest extends WMSTestSupport {
}
};
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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment