From 9e3901a283898509fe33db90daeb5a30887de2d4 Mon Sep 17 00:00:00 2001 From: Alexey Sosnoviy Date: Wed, 12 Oct 2022 11:04:19 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A3=D0=B1=D1=80=D0=B0=D0=BB=20dirtycontext?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../diagnostics/CommonModuleAssignDiagnosticTest.java | 3 --- .../diagnostics/CommonModuleInvalidTypeDiagnosticTest.java | 2 -- .../diagnostics/CommonModuleNameCachedDiagnosticTest.java | 2 -- .../diagnostics/CommonModuleNameClientDiagnosticTest.java | 2 -- .../CommonModuleNameClientServerDiagnosticTest.java | 2 -- .../diagnostics/CommonModuleNameFullAccessDiagnosticTest.java | 2 -- .../CommonModuleNameGlobalClientDiagnosticTest.java | 2 -- .../diagnostics/CommonModuleNameGlobalDiagnosticTest.java | 2 -- .../diagnostics/CommonModuleNameServerCallDiagnosticTest.java | 2 -- .../diagnostics/CommonModuleNameWordsDiagnosticTest.java | 2 -- 10 files changed, 21 deletions(-) diff --git a/src/test/java/com/github/_1c_syntax/bsl/languageserver/diagnostics/CommonModuleAssignDiagnosticTest.java b/src/test/java/com/github/_1c_syntax/bsl/languageserver/diagnostics/CommonModuleAssignDiagnosticTest.java index 16c3ee1a9c7..0cd9d170c2e 100644 --- a/src/test/java/com/github/_1c_syntax/bsl/languageserver/diagnostics/CommonModuleAssignDiagnosticTest.java +++ b/src/test/java/com/github/_1c_syntax/bsl/languageserver/diagnostics/CommonModuleAssignDiagnosticTest.java @@ -21,14 +21,12 @@ */ package com.github._1c_syntax.bsl.languageserver.diagnostics; -import com.github._1c_syntax.bsl.languageserver.context.DocumentContext; import com.github._1c_syntax.bsl.languageserver.util.TestUtils; import com.github._1c_syntax.utils.Absolute; import lombok.SneakyThrows; import org.apache.commons.io.FileUtils; import org.eclipse.lsp4j.Diagnostic; import org.junit.jupiter.api.Test; -import org.springframework.test.annotation.DirtiesContext; import java.nio.charset.StandardCharsets; import java.nio.file.Path; @@ -37,7 +35,6 @@ import static com.github._1c_syntax.bsl.languageserver.util.Assertions.assertThat; -@DirtiesContext class CommonModuleAssignDiagnosticTest extends AbstractDiagnosticTest { CommonModuleAssignDiagnosticTest() { super(CommonModuleAssignDiagnostic.class); diff --git a/src/test/java/com/github/_1c_syntax/bsl/languageserver/diagnostics/CommonModuleInvalidTypeDiagnosticTest.java b/src/test/java/com/github/_1c_syntax/bsl/languageserver/diagnostics/CommonModuleInvalidTypeDiagnosticTest.java index 3ebd5453fb3..82eceb29b6f 100644 --- a/src/test/java/com/github/_1c_syntax/bsl/languageserver/diagnostics/CommonModuleInvalidTypeDiagnosticTest.java +++ b/src/test/java/com/github/_1c_syntax/bsl/languageserver/diagnostics/CommonModuleInvalidTypeDiagnosticTest.java @@ -29,7 +29,6 @@ import org.apache.commons.io.FileUtils; import org.eclipse.lsp4j.Diagnostic; import org.junit.jupiter.api.Test; -import org.springframework.test.annotation.DirtiesContext; import java.nio.charset.StandardCharsets; import java.nio.file.Path; @@ -41,7 +40,6 @@ import static org.mockito.Mockito.spy; import static org.mockito.Mockito.when; -@DirtiesContext class CommonModuleInvalidTypeDiagnosticTest extends AbstractDiagnosticTest { CommonModuleInvalidTypeDiagnosticTest() { super(CommonModuleInvalidTypeDiagnostic.class); diff --git a/src/test/java/com/github/_1c_syntax/bsl/languageserver/diagnostics/CommonModuleNameCachedDiagnosticTest.java b/src/test/java/com/github/_1c_syntax/bsl/languageserver/diagnostics/CommonModuleNameCachedDiagnosticTest.java index 54c0ac621bd..4dce58fb2ed 100644 --- a/src/test/java/com/github/_1c_syntax/bsl/languageserver/diagnostics/CommonModuleNameCachedDiagnosticTest.java +++ b/src/test/java/com/github/_1c_syntax/bsl/languageserver/diagnostics/CommonModuleNameCachedDiagnosticTest.java @@ -30,7 +30,6 @@ import org.apache.commons.io.FileUtils; import org.eclipse.lsp4j.Diagnostic; import org.junit.jupiter.api.Test; -import org.springframework.test.annotation.DirtiesContext; import java.nio.charset.StandardCharsets; import java.nio.file.Path; @@ -42,7 +41,6 @@ import static org.mockito.Mockito.spy; import static org.mockito.Mockito.when; -@DirtiesContext class CommonModuleNameCachedDiagnosticTest extends AbstractDiagnosticTest { private MDCommonModule module; private DocumentContext documentContext; diff --git a/src/test/java/com/github/_1c_syntax/bsl/languageserver/diagnostics/CommonModuleNameClientDiagnosticTest.java b/src/test/java/com/github/_1c_syntax/bsl/languageserver/diagnostics/CommonModuleNameClientDiagnosticTest.java index 6f12110fec0..e811e66b3d5 100644 --- a/src/test/java/com/github/_1c_syntax/bsl/languageserver/diagnostics/CommonModuleNameClientDiagnosticTest.java +++ b/src/test/java/com/github/_1c_syntax/bsl/languageserver/diagnostics/CommonModuleNameClientDiagnosticTest.java @@ -29,7 +29,6 @@ import org.apache.commons.io.FileUtils; import org.eclipse.lsp4j.Diagnostic; import org.junit.jupiter.api.Test; -import org.springframework.test.annotation.DirtiesContext; import java.nio.charset.StandardCharsets; import java.nio.file.Path; @@ -41,7 +40,6 @@ import static org.mockito.Mockito.spy; import static org.mockito.Mockito.when; -@DirtiesContext class CommonModuleNameClientDiagnosticTest extends AbstractDiagnosticTest { private DocumentContext documentContext; private MDCommonModule module; diff --git a/src/test/java/com/github/_1c_syntax/bsl/languageserver/diagnostics/CommonModuleNameClientServerDiagnosticTest.java b/src/test/java/com/github/_1c_syntax/bsl/languageserver/diagnostics/CommonModuleNameClientServerDiagnosticTest.java index 7ce41e4d979..6bbf9afb3c9 100644 --- a/src/test/java/com/github/_1c_syntax/bsl/languageserver/diagnostics/CommonModuleNameClientServerDiagnosticTest.java +++ b/src/test/java/com/github/_1c_syntax/bsl/languageserver/diagnostics/CommonModuleNameClientServerDiagnosticTest.java @@ -29,7 +29,6 @@ import org.apache.commons.io.FileUtils; import org.eclipse.lsp4j.Diagnostic; import org.junit.jupiter.api.Test; -import org.springframework.test.annotation.DirtiesContext; import java.nio.charset.StandardCharsets; import java.nio.file.Path; @@ -41,7 +40,6 @@ import static org.mockito.Mockito.spy; import static org.mockito.Mockito.when; -@DirtiesContext class CommonModuleNameClientServerDiagnosticTest extends AbstractDiagnosticTest { private MDCommonModule module; private DocumentContext documentContext; diff --git a/src/test/java/com/github/_1c_syntax/bsl/languageserver/diagnostics/CommonModuleNameFullAccessDiagnosticTest.java b/src/test/java/com/github/_1c_syntax/bsl/languageserver/diagnostics/CommonModuleNameFullAccessDiagnosticTest.java index 2591c20a8c2..06510efe131 100644 --- a/src/test/java/com/github/_1c_syntax/bsl/languageserver/diagnostics/CommonModuleNameFullAccessDiagnosticTest.java +++ b/src/test/java/com/github/_1c_syntax/bsl/languageserver/diagnostics/CommonModuleNameFullAccessDiagnosticTest.java @@ -29,7 +29,6 @@ import org.apache.commons.io.FileUtils; import org.eclipse.lsp4j.Diagnostic; import org.junit.jupiter.api.Test; -import org.springframework.test.annotation.DirtiesContext; import java.nio.charset.StandardCharsets; import java.nio.file.Path; @@ -41,7 +40,6 @@ import static org.mockito.Mockito.spy; import static org.mockito.Mockito.when; -@DirtiesContext class CommonModuleNameFullAccessDiagnosticTest extends AbstractDiagnosticTest { private DocumentContext documentContext; private MDCommonModule module; diff --git a/src/test/java/com/github/_1c_syntax/bsl/languageserver/diagnostics/CommonModuleNameGlobalClientDiagnosticTest.java b/src/test/java/com/github/_1c_syntax/bsl/languageserver/diagnostics/CommonModuleNameGlobalClientDiagnosticTest.java index f191b62fc29..b28973779f0 100644 --- a/src/test/java/com/github/_1c_syntax/bsl/languageserver/diagnostics/CommonModuleNameGlobalClientDiagnosticTest.java +++ b/src/test/java/com/github/_1c_syntax/bsl/languageserver/diagnostics/CommonModuleNameGlobalClientDiagnosticTest.java @@ -29,7 +29,6 @@ import org.apache.commons.io.FileUtils; import org.eclipse.lsp4j.Diagnostic; import org.junit.jupiter.api.Test; -import org.springframework.test.annotation.DirtiesContext; import java.nio.charset.StandardCharsets; import java.nio.file.Path; @@ -41,7 +40,6 @@ import static org.mockito.Mockito.spy; import static org.mockito.Mockito.when; -@DirtiesContext class CommonModuleNameGlobalClientDiagnosticTest extends AbstractDiagnosticTest { private MDCommonModule module; private DocumentContext documentContext; diff --git a/src/test/java/com/github/_1c_syntax/bsl/languageserver/diagnostics/CommonModuleNameGlobalDiagnosticTest.java b/src/test/java/com/github/_1c_syntax/bsl/languageserver/diagnostics/CommonModuleNameGlobalDiagnosticTest.java index 50f2d557f30..47e929d3dc4 100644 --- a/src/test/java/com/github/_1c_syntax/bsl/languageserver/diagnostics/CommonModuleNameGlobalDiagnosticTest.java +++ b/src/test/java/com/github/_1c_syntax/bsl/languageserver/diagnostics/CommonModuleNameGlobalDiagnosticTest.java @@ -29,7 +29,6 @@ import org.apache.commons.io.FileUtils; import org.eclipse.lsp4j.Diagnostic; import org.junit.jupiter.api.Test; -import org.springframework.test.annotation.DirtiesContext; import java.nio.charset.StandardCharsets; import java.nio.file.Path; @@ -41,7 +40,6 @@ import static org.mockito.Mockito.spy; import static org.mockito.Mockito.when; -@DirtiesContext class CommonModuleNameGlobalDiagnosticTest extends AbstractDiagnosticTest { private DocumentContext documentContext; private MDCommonModule module; diff --git a/src/test/java/com/github/_1c_syntax/bsl/languageserver/diagnostics/CommonModuleNameServerCallDiagnosticTest.java b/src/test/java/com/github/_1c_syntax/bsl/languageserver/diagnostics/CommonModuleNameServerCallDiagnosticTest.java index edf35d6b60e..6662a6c8a4e 100644 --- a/src/test/java/com/github/_1c_syntax/bsl/languageserver/diagnostics/CommonModuleNameServerCallDiagnosticTest.java +++ b/src/test/java/com/github/_1c_syntax/bsl/languageserver/diagnostics/CommonModuleNameServerCallDiagnosticTest.java @@ -29,7 +29,6 @@ import org.apache.commons.io.FileUtils; import org.eclipse.lsp4j.Diagnostic; import org.junit.jupiter.api.Test; -import org.springframework.test.annotation.DirtiesContext; import java.nio.charset.StandardCharsets; import java.nio.file.Path; @@ -41,7 +40,6 @@ import static org.mockito.Mockito.spy; import static org.mockito.Mockito.when; -@DirtiesContext class CommonModuleNameServerCallDiagnosticTest extends AbstractDiagnosticTest { private MDCommonModule module; diff --git a/src/test/java/com/github/_1c_syntax/bsl/languageserver/diagnostics/CommonModuleNameWordsDiagnosticTest.java b/src/test/java/com/github/_1c_syntax/bsl/languageserver/diagnostics/CommonModuleNameWordsDiagnosticTest.java index 5493e747f16..90e8389bfb4 100644 --- a/src/test/java/com/github/_1c_syntax/bsl/languageserver/diagnostics/CommonModuleNameWordsDiagnosticTest.java +++ b/src/test/java/com/github/_1c_syntax/bsl/languageserver/diagnostics/CommonModuleNameWordsDiagnosticTest.java @@ -29,7 +29,6 @@ import org.apache.commons.io.FileUtils; import org.eclipse.lsp4j.Diagnostic; import org.junit.jupiter.api.Test; -import org.springframework.test.annotation.DirtiesContext; import java.nio.charset.StandardCharsets; import java.nio.file.Path; @@ -42,7 +41,6 @@ import static org.mockito.Mockito.spy; import static org.mockito.Mockito.when; -@DirtiesContext class CommonModuleNameWordsDiagnosticTest extends AbstractDiagnosticTest { private MDCommonModule module;