Skip to content

Commit

Permalink
Убрал dirtycontext
Browse files Browse the repository at this point in the history
  • Loading branch information
asosnoviy committed Oct 12, 2022
1 parent 01e01aa commit 9e3901a
Show file tree
Hide file tree
Showing 10 changed files with 0 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -37,7 +35,6 @@

import static com.github._1c_syntax.bsl.languageserver.util.Assertions.assertThat;

@DirtiesContext
class CommonModuleAssignDiagnosticTest extends AbstractDiagnosticTest<CommonModuleAssignDiagnostic> {
CommonModuleAssignDiagnosticTest() {
super(CommonModuleAssignDiagnostic.class);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -41,7 +40,6 @@
import static org.mockito.Mockito.spy;
import static org.mockito.Mockito.when;

@DirtiesContext
class CommonModuleInvalidTypeDiagnosticTest extends AbstractDiagnosticTest<CommonModuleInvalidTypeDiagnostic> {
CommonModuleInvalidTypeDiagnosticTest() {
super(CommonModuleInvalidTypeDiagnostic.class);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -42,7 +41,6 @@
import static org.mockito.Mockito.spy;
import static org.mockito.Mockito.when;

@DirtiesContext
class CommonModuleNameCachedDiagnosticTest extends AbstractDiagnosticTest<CommonModuleNameCachedDiagnostic> {
private MDCommonModule module;
private DocumentContext documentContext;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -41,7 +40,6 @@
import static org.mockito.Mockito.spy;
import static org.mockito.Mockito.when;

@DirtiesContext
class CommonModuleNameClientDiagnosticTest extends AbstractDiagnosticTest<CommonModuleNameClientDiagnostic> {
private DocumentContext documentContext;
private MDCommonModule module;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -41,7 +40,6 @@
import static org.mockito.Mockito.spy;
import static org.mockito.Mockito.when;

@DirtiesContext
class CommonModuleNameClientServerDiagnosticTest extends AbstractDiagnosticTest<CommonModuleNameClientServerDiagnostic> {
private MDCommonModule module;
private DocumentContext documentContext;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -41,7 +40,6 @@
import static org.mockito.Mockito.spy;
import static org.mockito.Mockito.when;

@DirtiesContext
class CommonModuleNameFullAccessDiagnosticTest extends AbstractDiagnosticTest<CommonModuleNameFullAccessDiagnostic> {
private DocumentContext documentContext;
private MDCommonModule module;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -41,7 +40,6 @@
import static org.mockito.Mockito.spy;
import static org.mockito.Mockito.when;

@DirtiesContext
class CommonModuleNameGlobalClientDiagnosticTest extends AbstractDiagnosticTest<CommonModuleNameGlobalClientDiagnostic> {
private MDCommonModule module;
private DocumentContext documentContext;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -41,7 +40,6 @@
import static org.mockito.Mockito.spy;
import static org.mockito.Mockito.when;

@DirtiesContext
class CommonModuleNameGlobalDiagnosticTest extends AbstractDiagnosticTest<CommonModuleNameGlobalDiagnostic> {
private DocumentContext documentContext;
private MDCommonModule module;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -41,7 +40,6 @@
import static org.mockito.Mockito.spy;
import static org.mockito.Mockito.when;

@DirtiesContext
class CommonModuleNameServerCallDiagnosticTest extends AbstractDiagnosticTest<CommonModuleNameServerCallDiagnostic> {

private MDCommonModule module;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -42,7 +41,6 @@
import static org.mockito.Mockito.spy;
import static org.mockito.Mockito.when;

@DirtiesContext
class CommonModuleNameWordsDiagnosticTest extends AbstractDiagnosticTest<CommonModuleNameWordsDiagnostic> {

private MDCommonModule module;
Expand Down

0 comments on commit 9e3901a

Please sign in to comment.