Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #1372: apoc.load.html ability to read runtime structure of the page #1908

Merged
merged 24 commits into from Jun 11, 2021

Conversation

vga91
Copy link
Collaborator

@vga91 vga91 commented May 17, 2021

Fixes #1372

  • Fixed "baseUri" config
  • Moved some tests in LoadHtmlTestParameterized.java
  • Added LoadHtmlConfig
  • Added selenium-dependencies in extra-dependencies like MongoDb / Couchbase drivers

full/build.gradle Outdated Show resolved Hide resolved
@conker84 conker84 marked this pull request as draft May 20, 2021 13:31
@vga91 vga91 marked this pull request as ready for review May 24, 2021 09:42
result -> {
Map<String, Object> value = (Map<String, Object>) result.get("value");
final List<Map<String, Object>> urlTestList = (List<Map<String, Object>>) value.get("urlTest");
urlTestList.forEach(tag -> {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe compare urlTestList to a predefined List<Map<...>>? It may be easier to read than the current switch block

@@ -233,6 +233,20 @@ public void testQueryWithFailsSilentlyWithListWithExceptionIfIncorrectCharset()
testIncorrectCharset("CALL apoc.load.html('" + VALID_PATH + "',{a:'a'}, {failSilently: 'WITH_LIST', charset: '" + INVALID_CHARSET + "'})");
}

@Test(expected = QueryExecutionException.class)
public void testFailsWithIncorrectBrowser() {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why not use the ExpectedExceptionJunit 4 Rule? This would make the flow much easier to (write and) read?

@fbiville fbiville merged commit 530a58c into neo4j-contrib:4.1 Jun 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants