From d05f413fc3d3d5bd7a72788e84dbacbab8be8c3f Mon Sep 17 00:00:00 2001 From: Lorenzo Bettini Date: Wed, 10 Jan 2024 11:23:55 +0100 Subject: [PATCH] String.joing instead of IterableExtensions.join --- .../xtext/ui/tests/refactoring/ProgressReportingTest.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/org.eclipse.xtext.ui.tests/src-longrunning/org/eclipse/xtext/ui/tests/refactoring/ProgressReportingTest.java b/org.eclipse.xtext.ui.tests/src-longrunning/org/eclipse/xtext/ui/tests/refactoring/ProgressReportingTest.java index fd74db6d178..7b04717b7b6 100644 --- a/org.eclipse.xtext.ui.tests/src-longrunning/org/eclipse/xtext/ui/tests/refactoring/ProgressReportingTest.java +++ b/org.eclipse.xtext.ui.tests/src-longrunning/org/eclipse/xtext/ui/tests/refactoring/ProgressReportingTest.java @@ -19,7 +19,6 @@ import org.eclipse.core.runtime.NullProgressMonitor; import org.eclipse.core.runtime.Platform; import org.eclipse.ltk.core.refactoring.resource.RenameResourceDescriptor; -import org.eclipse.xtext.xbase.lib.IterableExtensions; import org.eclipse.xtext.xbase.lib.StringExtensions; import org.junit.Assert; import org.junit.ComparisonFailure; @@ -74,15 +73,15 @@ public void setCanceled(boolean value) { } public void assertLogged(List expectation) { - String eventsDump = IterableExtensions.join(events, "\n"); - String expectedEventsDump = IterableExtensions.join(expectation, "\n"); + String eventsDump = String.join("\n", events); + String expectedEventsDump = String.join("\n", expectation); if (!eventsDump.startsWith(expectedEventsDump)) { throw new ComparisonFailure("", expectedEventsDump, eventsDump); } } public void assertLogged(String expectation) { - String eventsDump = IterableExtensions.join(events, "\n"); + String eventsDump = String.join("\n", events); assertEquals(expectation, eventsDump); } }