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
Conversation
…cture of the page
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 -> { |
There was a problem hiding this comment.
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() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why not use the ExpectedException
Junit 4 Rule? This would make the flow much easier to (write and) read?
Fixes #1372
LoadHtmlTestParameterized.java
LoadHtmlConfig
selenium-dependencies
inextra-dependencies
like MongoDb / Couchbase drivers