~hrbrmstr/htmlunitjars

d7cb4661e78cffc1f36c3a88855ab58067cfdf0c — hrbrmstr 3 years ago f1683dc
2.40.0 jars
23 files changed, 43 insertions(+), 11 deletions(-)

M DESCRIPTION
M NEWS.md
M README.md
R inst/java/{htmlunit-2.39.0.jar => htmlunit-2.40.0.jar}
R inst/java/{htmlunit-core-js-2.39.0.jar => htmlunit-core-js-2.40.0.jar}
R inst/java/{jetty-client-9.4.27.v20200227.jar => jetty-client-9.4.28.v20200408.jar}
R inst/java/{jetty-http-9.4.27.v20200227.jar => jetty-http-9.4.28.v20200408.jar}
R inst/java/{jetty-io-9.4.27.v20200227.jar => jetty-io-9.4.28.v20200408.jar}
R inst/java/{jetty-util-9.4.27.v20200227.jar => jetty-util-9.4.28.v20200408.jar}
D inst/java/jetty-xml-9.4.27.v20200227.jar
A inst/java/jetty-xml-9.4.28.v20200408.jar
R inst/java/{neko-htmlunit-2.39.0.jar => neko-htmlunit-2.40.0.jar}
A inst/java/salvation-2.7.1.jar
D inst/java/websocket-api-9.4.27.v20200227.jar
A inst/java/websocket-api-9.4.28.v20200408.jar
R inst/java/{websocket-client-9.4.27.v20200227.jar => websocket-client-9.4.28.v20200408.jar}
D inst/java/websocket-common-9.4.27.v20200227.jar
A inst/java/websocket-common-9.4.28.v20200408.jar
A inst/tinytest/test_htmlunitjars.R
M java/htmlunit/pom.xml
D tests/test-all.R
D tests/testthat/test-jerichojars.R
A tests/tinytest.R
M DESCRIPTION => DESCRIPTION +3 -3
@@ 1,8 1,8 @@
Package: htmlunitjars
Type: Package
Title: Java Archive Wrapper Supporting the 'htmlunit' Package
Version: 2.39.0
Date: 2020-04-09
Version: 2.40.0
Date: 2020-05-09
Authors@R: c(
    person("Bob", "Rudis", role = c("aut", "cre"), email = "bob@rud.is"),
    person("Mike", "Bowlder", role = "aut", comment = "Original HtmlUnit Java author"),


@@ 22,7 22,7 @@ BugReports: https://git.rud.is/hrbrmstr/htmlunitjars/issues
License: Apache License 2.0 | file LICENSE
Encoding: UTF-8
Suggests:
    testthat,
    tinytest,
    covr
Depends:
    R (>= 3.2.0),

M NEWS.md => NEWS.md +6 -0
@@ 1,3 1,9 @@
# 2.40.0
* Updated main and dependent JARs to track with htmlunit 2.40.0 
  release <http://htmlunit.sourceforge.net/changes-report.html#a2.38.0>
* Switched to {tinytest}
* Added tests

# 2.38.0
* Updated main and dependent JARs to track with htmlunit 2.38.0 
  release <http://htmlunit.sourceforge.net/changes-report.html#a2.38.0>

M README.md => README.md +1 -1
@@ 73,7 73,7 @@ library(htmlunitjars)

# current verison
packageVersion("htmlunitjars")
## [1] '2.39.0'
## [1] '2.40.0'
```

### Give It A Go

R inst/java/htmlunit-2.39.0.jar => inst/java/htmlunit-2.40.0.jar +0 -0
R inst/java/htmlunit-core-js-2.39.0.jar => inst/java/htmlunit-core-js-2.40.0.jar +0 -0
R inst/java/jetty-client-9.4.27.v20200227.jar => inst/java/jetty-client-9.4.28.v20200408.jar +0 -0
R inst/java/jetty-http-9.4.27.v20200227.jar => inst/java/jetty-http-9.4.28.v20200408.jar +0 -0
R inst/java/jetty-io-9.4.27.v20200227.jar => inst/java/jetty-io-9.4.28.v20200408.jar +0 -0
R inst/java/jetty-util-9.4.27.v20200227.jar => inst/java/jetty-util-9.4.28.v20200408.jar +0 -0
D inst/java/jetty-xml-9.4.27.v20200227.jar => inst/java/jetty-xml-9.4.27.v20200227.jar +0 -0
A inst/java/jetty-xml-9.4.28.v20200408.jar => inst/java/jetty-xml-9.4.28.v20200408.jar +0 -0
R inst/java/neko-htmlunit-2.39.0.jar => inst/java/neko-htmlunit-2.40.0.jar +0 -0
A inst/java/salvation-2.7.1.jar => inst/java/salvation-2.7.1.jar +0 -0
D inst/java/websocket-api-9.4.27.v20200227.jar => inst/java/websocket-api-9.4.27.v20200227.jar +0 -0
A inst/java/websocket-api-9.4.28.v20200408.jar => inst/java/websocket-api-9.4.28.v20200408.jar +0 -0
R inst/java/websocket-client-9.4.27.v20200227.jar => inst/java/websocket-client-9.4.28.v20200408.jar +0 -0
D inst/java/websocket-common-9.4.27.v20200227.jar => inst/java/websocket-common-9.4.27.v20200227.jar +0 -0
A inst/java/websocket-common-9.4.28.v20200408.jar => inst/java/websocket-common-9.4.28.v20200408.jar +0 -0
A inst/tinytest/test_htmlunitjars.R => inst/tinytest/test_htmlunitjars.R +27 -0
@@ 0,0 1,27 @@
library(htmlunitjars)

browsers <- J("com.gargoylesoftware.htmlunit.BrowserVersion")

expect_equal(browsers$class$toString(), "class com.gargoylesoftware.htmlunit.BrowserVersion")

wc <- new(J("com.gargoylesoftware.htmlunit.WebClient"), browsers$CHROME)

expect_true(wc$isJavaScriptEnabled())

invisible(wc$waitForBackgroundJavaScriptStartingBefore(.jlong(2000L)))

wc_opts <- wc$getOptions()

prox <- wc_opts$getProxyConfig()

expect_equal(prox$getProxyPort(), 0)

wc_opts$setThrowExceptionOnFailingStatusCode(FALSE)
wc_opts$setThrowExceptionOnScriptError(FALSE)

test_url <- "https://hrbrmstr.github.io/htmlunitjars/index.html"

pg <- wc$getPage(test_url)

expect_equal(pg$getTitleText(), "")


M java/htmlunit/pom.xml => java/htmlunit/pom.xml +1 -1
@@ 20,7 20,7 @@
    <dependency>
      <groupId>net.sourceforge.htmlunit</groupId>
      <artifactId>htmlunit</artifactId>
      <version>2.39.0</version>
      <version>2.40.0</version>
    </dependency>
  </dependencies>
</project>

D tests/test-all.R => tests/test-all.R +0 -2
@@ 1,2 0,0 @@
library(testthat)
test_check("htmlunitjars")

D tests/testthat/test-jerichojars.R => tests/testthat/test-jerichojars.R +0 -4
@@ 1,4 0,0 @@
context("basic functionality")
test_that("we can do something", {

})

A tests/tinytest.R => tests/tinytest.R +5 -0
@@ 0,0 1,5 @@

if ( requireNamespace("tinytest", quietly=TRUE) ){
  tinytest::test_package("htmlunitjars")
}