From fbd7af53cfa4ce857cf44dc748b7d9f934509b7e Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Tue, 24 Nov 2020 09:06:35 +0300 Subject: tests: disable css in WebClient and fix deprecated usage --- src/test/java/com/juick/server/tests/ServerTests.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/test/java/com/juick/server/tests') 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 -- cgit v1.2.3