SSR: simplify/centralize setting and resetting of universal matching in tests

This commit is contained in:
Bas Leijdekkers
2017-04-27 19:21:50 +02:00
parent 07ea0e6e1a
commit fb2f4a19c8
2 changed files with 2 additions and 5 deletions
@@ -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,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);