From 31e6ab1a2dc3ebd75392b8cc192d8da473bd406f Mon Sep 17 00:00:00 2001 From: Roman Shevchenko Date: Mon, 25 Jun 2018 12:05:14 +0300 Subject: [PATCH] Cleanup (formatting) --- .../NavigateDelegatedClsMethodsTest.groovy | 32 ++++++------------- 1 file changed, 9 insertions(+), 23 deletions(-) diff --git a/plugins/groovy/test/org/jetbrains/plugins/groovy/lang/resolve/NavigateDelegatedClsMethodsTest.groovy b/plugins/groovy/test/org/jetbrains/plugins/groovy/lang/resolve/NavigateDelegatedClsMethodsTest.groovy index 93067928f971..dc788403c463 100644 --- a/plugins/groovy/test/org/jetbrains/plugins/groovy/lang/resolve/NavigateDelegatedClsMethodsTest.groovy +++ b/plugins/groovy/test/org/jetbrains/plugins/groovy/lang/resolve/NavigateDelegatedClsMethodsTest.groovy @@ -1,19 +1,6 @@ -/* - * Copyright 2000-2016 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. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ +// Copyright 2000-2018 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. package org.jetbrains.plugins.groovy.lang.resolve + import com.intellij.codeInsight.TargetElementUtil import com.intellij.openapi.module.Module import com.intellij.openapi.roots.ContentEntry @@ -30,6 +17,7 @@ import org.jetbrains.plugins.groovy.LightGroovyTestCase import org.jetbrains.plugins.groovy.util.TestUtils import static org.jetbrains.plugins.groovy.util.TestUtils.getAbsoluteTestDataPath + /** * @author Max Medvedev */ @@ -41,16 +29,15 @@ class NavigateDelegatedClsMethodsTest extends LightGroovyTestCase { void configureModule(@NotNull Module module, @NotNull ModifiableRootModel model, @NotNull ContentEntry contentEntry) { super.configureModule(module, model, contentEntry) - final Library.ModifiableModel gebModel = model.moduleLibraryTable.createLibrary("Geb").modifiableModel - final VirtualFile gebJar = JarFileSystem.instance.refreshAndFindFileByPath(absoluteTestDataPath + 'mockGeb/geb-core-0.7.1.jar!/') + Library.ModifiableModel gebModel = model.moduleLibraryTable.createLibrary("Geb").modifiableModel + VirtualFile gebJar = JarFileSystem.instance.refreshAndFindFileByPath(absoluteTestDataPath + 'mockGeb/geb-core-0.7.1.jar!/') assert gebJar != null gebModel.addRoot(gebJar, OrderRootType.CLASSES) - final VirtualFile gebSource = JarFileSystem.instance.refreshAndFindFileByPath(absoluteTestDataPath + 'mockGeb/geb-core-0.7.1-sources.jar!/') + VirtualFile gebSource = JarFileSystem.instance.refreshAndFindFileByPath(absoluteTestDataPath + 'mockGeb/geb-core-0.7.1-sources.jar!/') assert gebSource != null gebModel.addRoot(gebSource, OrderRootType.SOURCES) gebModel.commit() - } } @@ -68,7 +55,7 @@ class A extends Page { def instance = TargetElementUtil.getInstance() def resolved = instance.findTargetElement(editor, instance.allAccepted, editor.caretModel.offset) assertInstanceOf resolved, PsiMethod - assertEquals ('NavigableSupport', (resolved as PsiMethod).containingClass.name) + assertEquals('NavigableSupport', (resolved as PsiMethod).containingClass.name) } } @@ -86,8 +73,7 @@ class A extends Page { def instance = TargetElementUtil.getInstance() def resolved = instance.findTargetElement(editor, instance.allAccepted, editor.caretModel.offset).navigationElement assertInstanceOf resolved, PsiMethod - assertEquals ('NavigableSupport', (resolved as PsiMethod).containingClass.name) + assertEquals('NavigableSupport', (resolved as PsiMethod).containingClass.name) } } - -} +} \ No newline at end of file