Skip to content

Commit

Permalink
String.joing instead of IterableExtensions.join
Browse files Browse the repository at this point in the history
  • Loading branch information
LorenzoBettini committed Jan 10, 2024
1 parent eca1e49 commit 2a47548
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -74,15 +73,15 @@ public void setCanceled(boolean value) {
}

public void assertLogged(List<String> 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);
}
}
Expand Down

0 comments on commit 2a47548

Please sign in to comment.