Skip to content

Commit

Permalink
Merge pull request #1114 from ZakarFin/add-httpcheck
Browse files Browse the repository at this point in the history
Check we can do http before using it on test
  • Loading branch information
ZakarFin authored Jan 21, 2025
2 parents 22f0ea1 + e6a03dd commit 0b0c68d
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,12 @@
import fi.mml.portti.service.search.SearchCriteria;
import fi.mml.portti.service.search.SearchResultItem;
import fi.nls.oskari.map.geometry.ProjectionHelper;
import fi.nls.test.util.TestHelper;
import org.geotools.referencing.CRS;
import org.junit.jupiter.api.Test;

import static org.junit.jupiter.api.Assumptions.assumeTrue;

/**
* Created by SMAKINEN on 15.9.2015.
*/
Expand All @@ -19,7 +22,7 @@ public class OpenStreetMapSearchChannelTest {
*/
@Test
public void testCoordinateTransforms() throws Exception {

assumeTrue(TestHelper.canDoHttp());
OpenStreetMapSearchChannel channel = new OpenStreetMapSearchChannel();
channel.init();
SearchCriteria sc = new SearchCriteria();
Expand Down

0 comments on commit 0b0c68d

Please sign in to comment.