Skip to content

Unit test fails under Windows #89

@lindholm

Description

@lindholm

The should_insert_special_entities_with_custom_end_line unit fails under windows because the embedded
"\n" doesn't match the, converted by checkout, value in the test data

diff --git a/core/src/test/java/org/jboss/arquillian/persistence/script/ScriptExecutorTest.java b/core/src/test/java/org/jboss/arquillian/persistence/script/ScriptExecutorTest.java
index f1bf7dd..a34c07e 100644
--- a/core/src/test/java/org/jboss/arquillian/persistence/script/ScriptExecutorTest.java
+++ b/core/src/test/java/org/jboss/arquillian/persistence/script/ScriptExecutorTest.java
@@ -271,7 +272,7 @@
         verify(connection.createStatement(), times(1)).execute(statementsCaptor.capture());
         assertThat(statementsCaptor.getAllValues()).containsSequence(
             "insert into useraccount (id, firstname, lastname, username, password)" +
-                " values (1, 'John', 'Smith & Company', 'doovde;;', '&test©')\nGO"
+                " values (1, 'John', 'Smith & Company', 'doovde;;', '&test©')" + System.lineSeparator() + "GO"
         );
     }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions