mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
SSR: simplify/centralize setting and resetting of universal matching in tests
This commit is contained in:
+1
-3
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2000-2016 JetBrains s.r.o.
|
||||
* Copyright 2000-2017 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -41,8 +41,6 @@ abstract class StructuralReplaceTestCase extends LightQuickFixTestCase {
|
||||
protected void setUp() throws Exception {
|
||||
super.setUp();
|
||||
|
||||
StructuralSearchUtil.ourUseUniversalMatchingAlgorithm = false;
|
||||
|
||||
LanguageLevelProjectExtension.getInstance(getProject()).setLanguageLevel(LanguageLevel.JDK_1_4);
|
||||
|
||||
options = new ReplaceOptions();
|
||||
|
||||
+1
-2
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2000-2015 JetBrains s.r.o.
|
||||
* Copyright 2000-2017 JetBrains s.r.o.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -38,7 +38,6 @@ abstract class StructuralSearchTestCase extends LightQuickFixTestCase {
|
||||
protected void setUp() throws Exception {
|
||||
super.setUp();
|
||||
|
||||
StructuralSearchUtil.ourUseUniversalMatchingAlgorithm = false;
|
||||
testMatcher = new Matcher(getProject());
|
||||
options = new MatchOptions();
|
||||
options.setLooseMatching(true);
|
||||
|
||||
Reference in New Issue
Block a user