diff options
author | Vitaly Takmazov | 2024-12-02 00:42:59 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2024-12-02 00:43:18 +0300 |
commit | af2a2b796c4d0fccd89d07100a6a6bede1213152 (patch) | |
tree | 3621da73e0f64f256d4f1fdf34bb447864e38ec8 /src/test/java/com/juick | |
parent | fd4324745a3c8c51974426654142ebaf0bc4ed80 (diff) |
Upgrade to Spring Boot 3.4.0
Diffstat (limited to 'src/test/java/com/juick')
-rw-r--r-- | src/test/java/com/juick/server/tests/ServerTests.java | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/test/java/com/juick/server/tests/ServerTests.java b/src/test/java/com/juick/server/tests/ServerTests.java index 34e72ec7c..5782475ea 100644 --- a/src/test/java/com/juick/server/tests/ServerTests.java +++ b/src/test/java/com/juick/server/tests/ServerTests.java @@ -22,11 +22,11 @@ import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.core.type.TypeReference; import com.fasterxml.jackson.databind.JsonNode; import com.fasterxml.jackson.databind.ObjectMapper; -import com.gargoylesoftware.htmlunit.CookieManager; -import com.gargoylesoftware.htmlunit.WebClient; -import com.gargoylesoftware.htmlunit.css.StyleElement; -import com.gargoylesoftware.htmlunit.html.DomElement; -import com.gargoylesoftware.htmlunit.html.HtmlPage; +import org.htmlunit.CookieManager; +import org.htmlunit.WebClient; +import org.htmlunit.css.StyleElement; +import org.htmlunit.html.DomElement; +import org.htmlunit.html.HtmlPage; import com.github.scribejava.apis.AppleClientSecretGenerator; import com.jayway.jsonpath.JsonPath; import com.juick.*; @@ -1701,7 +1701,7 @@ public class ServerTests { Cookie loginCookie = loginResult.getResponse().getCookie("juick-remember-me"); webClient.setCookieManager(new CookieManager()); webClient.getCookieManager() - .addCookie(new com.gargoylesoftware.htmlunit.util.Cookie(loginCookie.getDomain(), + .addCookie(new org.htmlunit.util.Cookie(loginCookie.getDomain(), loginCookie.getName(), loginCookie.getValue())); HtmlPage threadPage = webClient.getPage(String.format(baseUri + "ugnich/%d", mid)); assertThat(threadPage.getWebResponse().getStatusCode(), equalTo(200)); @@ -1798,7 +1798,7 @@ public class ServerTests { Cookie loginCookie = loginResult.getResponse().getCookie("juick-remember-me"); webClient.setCookieManager(new CookieManager()); webClient.getCookieManager() - .addCookie(new com.gargoylesoftware.htmlunit.util.Cookie(loginCookie.getDomain(), + .addCookie(new org.htmlunit.util.Cookie(loginCookie.getDomain(), loginCookie.getName(), loginCookie.getValue())); HtmlPage discussions = webClient.getPage(baseUri); assertThat(discussions.querySelectorAll("article").size(), is(0)); @@ -1890,7 +1890,7 @@ public class ServerTests { Cookie loginCookie = loginResult.getResponse().getCookie("juick-remember-me"); webClient.setCookieManager(new CookieManager()); webClient.getCookieManager() - .addCookie(new com.gargoylesoftware.htmlunit.util.Cookie(loginCookie.getDomain(), + .addCookie(new org.htmlunit.util.Cookie(loginCookie.getDomain(), loginCookie.getName(), loginCookie.getValue())); int mid = messagesService.createMessage(ugnich.getUid(), "new test", null, Set.of()); subscriptionService.subscribeMessage(messagesService.getMessage(mid).get(), freefd); |