From e7535903f7eb04d98bb74036b1bf174c02c66c50 Mon Sep 17 00:00:00 2001 From: Sebastian Sdorra Date: Mon, 10 Aug 2020 09:22:29 +0200 Subject: [PATCH] Fix unit test on platforms which are not using UTF-8 as default --- .../spi/GitDiffCommand_DequoteOutputStreamTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/GitDiffCommand_DequoteOutputStreamTest.java b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/GitDiffCommand_DequoteOutputStreamTest.java index fb4cda8ca0..3e3f87131e 100644 --- a/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/GitDiffCommand_DequoteOutputStreamTest.java +++ b/scm-plugins/scm-git-plugin/src/test/java/sonia/scm/repository/spi/GitDiffCommand_DequoteOutputStreamTest.java @@ -21,7 +21,7 @@ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ - + package sonia.scm.repository.spi; import org.assertj.core.api.Assertions; @@ -48,7 +48,7 @@ public class GitDiffCommand_DequoteOutputStreamTest { stream.write(bytes, 0, bytes.length); stream.flush(); - Assertions.assertThat(buffer.toString()).isEqualTo("diff --git a/file úüþëéåëåé a b/file úüþëéåëåé b\n" + + Assertions.assertThat(buffer.toString("UTF-8")).isEqualTo("diff --git a/file úüþëéåëåé a b/file úüþëéåëåé b\n" + "new file mode 100644\n" + "index 0000000..8cb0607\n" + "--- /dev/null\n" +