// Copyright 2000-2023 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license. package com.intellij.refactoring; import com.intellij.JavaTestUtil; import org.junit.Assert; public class MoveJavaFileTest extends MoveFileTestCase { @Override protected String getTestDataPath() { return JavaTestUtil.getJavaTestDataPath() + "/refactoring/moveFile/"; } public void testPackageInfo() { doTest("pack2", "pack1/package-info.java"); } public void testConflict() { try { doTest("p2", "p1/B.java"); fail("Conflict not detected!"); } catch (BaseRefactoringProcessor.ConflictsInTestsException e) { Assert.assertEquals("Package-local class B will no longer be accessible from field A.b", e.getMessage()); } } }