Skip to content

Commit

Permalink
[BqvAC2FK] spotlessApply changes
Browse files Browse the repository at this point in the history
  • Loading branch information
vga91 committed Dec 22, 2023
1 parent 916fba6 commit d87e32c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 22 deletions.
2 changes: 1 addition & 1 deletion full/src/main/java/apoc/load/LoadHtmlBrowser.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
import java.io.InputStream;
import java.net.MalformedURLException;
import java.net.URL;
import java.time.Duration;
import java.util.Map;
import org.apache.commons.io.IOUtils;
import org.openqa.selenium.By;
Expand All @@ -37,7 +38,6 @@
import org.openqa.selenium.support.ui.Wait;
import org.openqa.selenium.support.ui.WebDriverWait;


public class LoadHtmlBrowser {

public static InputStream getChromeInputStream(
Expand Down
26 changes: 5 additions & 21 deletions full/src/test/java/apoc/load/LoadHtmlTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
import java.util.Map;
import java.util.Set;
import java.util.concurrent.atomic.AtomicInteger;
import java.util.stream.Stream;
import org.apache.commons.lang.exception.ExceptionUtils;
import org.junit.After;
import org.junit.Assert;
Expand All @@ -47,25 +48,6 @@
import org.neo4j.test.rule.DbmsRule;
import org.neo4j.test.rule.ImpermanentDbmsRule;

import java.io.File;
import java.util.Collections;
import java.util.List;
import java.util.Map;
import java.util.Set;
import java.util.concurrent.atomic.AtomicInteger;
import java.util.stream.Stream;

import static apoc.load.LoadHtml.KEY_ERROR;
import static apoc.util.MapUtil.map;
import static apoc.util.TestUtil.testCall;
import static apoc.util.TestUtil.testResult;
import static java.util.Arrays.asList;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertNull;
import static org.junit.Assert.assertTrue;
import static org.junit.Assert.fail;

public class LoadHtmlTest {

protected static final String RESULT_QUERY_METADATA = ("{attributes={charset=UTF-8}, tagName=meta}, "
Expand Down Expand Up @@ -658,8 +640,10 @@ public static void skipIfBrowserNotPresentOrCompatible(Runnable runnable) {
try {
runnable.run();
} catch (RuntimeException e) {
// The test don't fail if the current chrome/firefox version is incompatible or if the browser is not installed
Stream<String> notPresentOrIncompatible = Stream.of("cannot find Chrome binary",
// The test don't fail if the current chrome/firefox version is incompatible or if the browser is not
// installed
Stream<String> notPresentOrIncompatible = Stream.of(
"cannot find Chrome binary",
"Cannot find firefox binary",
"browser start-up failure",
"This version of ChromeDriver only supports Chrome version");
Expand Down

0 comments on commit d87e32c

Please sign in to comment.