diff options
author | Vitaly Takmazov | 2020-11-24 09:06:35 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2020-11-24 09:07:45 +0300 |
commit | fbd7af53cfa4ce857cf44dc748b7d9f934509b7e (patch) | |
tree | b756cf71728dd26d57bf63b9823fdaec9bdd1eab /src/test/java | |
parent | 0ac4d1c73a5d664de2feb677699da37f3a3307de (diff) |
tests: disable css in WebClient and fix deprecated usage
Diffstat (limited to 'src/test/java')
-rw-r--r-- | src/test/java/com/juick/server/tests/ServerTests.java | 3 |
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 |