eclipse-jdt / eclipse.jdt.ui

Eclipse Public License 2.0
37 stars 90 forks source link

Random RenamePackageTests failure in I-build #1608

Open noopur2507 opened 2 months ago

noopur2507 commented 2 months ago

I20240822-0100 org.eclipse.jdt.ui.tests.refactoring.RenamePackageTests testImportFromMultiRoots5

The above test failed on gtk3-java17.

invalid update in file ATest.java [in q [in srcTest [in RenamePack2]]] package q class ATest A t A t2 expected:<package q; [import p.p.A; ]public class ATest {...> but was:<package q; []public class ATest {...>

org.junit.ComparisonFailure: invalid update in file ATest.java [in q [in srcTest [in RenamePack2]]]
package q
class ATest
A t
A t2 expected:<package q;

[import p.p.A;

]public class ATest {...> but was:<package q;

[]public class ATest {...>
at org.junit.Assert.assertEquals(Assert.java:117)
at org.eclipse.jdt.ui.tests.refactoring.GenericRefactoringTest.assertEqualLines(GenericRefactoringTest.java:648)
at org.eclipse.jdt.ui.tests.refactoring.RenamePackageTests.helperMultiProjects(RenamePackageTests.java:488)
at org.eclipse.jdt.ui.tests.refactoring.RenamePackageTests.testImportFromMultiRoots5(RenamePackageTests.java:1387)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)