aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2020-11-24 09:06:35 +0300
committerGravatar Vitaly Takmazov2020-11-24 09:07:45 +0300
commitfbd7af53cfa4ce857cf44dc748b7d9f934509b7e (patch)
treeb756cf71728dd26d57bf63b9823fdaec9bdd1eab /src
parent0ac4d1c73a5d664de2feb677699da37f3a3307de (diff)
tests: disable css in WebClient and fix deprecated usage
Diffstat (limited to 'src')
-rw-r--r--src/test/java/com/juick/server/tests/ServerTests.java3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/test/java/com/juick/server/tests/ServerTests.java b/src/test/java/com/juick/server/tests/ServerTests.java
index 1a9944ca..f8d3bfdc 100644
--- a/src/test/java/com/juick/server/tests/ServerTests.java
+++ b/src/test/java/com/juick/server/tests/ServerTests.java
@@ -294,9 +294,10 @@ public class ServerTests {
freefd = userService.createUser(freefdName, freefdPassword).orElseThrow(IllegalStateException::new);
juick = userService.createUser(juickName, juickPassword).orElseThrow(IllegalStateException::new);
webClient.getOptions().setJavaScriptEnabled(false);
+ webClient.getOptions().setCssEnabled(false);
isSetUp = true;
}
- MockitoAnnotations.initMocks(this);
+ MockitoAnnotations.openMocks(this);
}
@AfterEach