HHH-8397: MultiLineImportFileTest failing on some platforms (Fix)

This commit is contained in:
HGC 2013-07-31 12:30:41 +01:00 committed by Brett Meyer
parent 2d85d84acc
commit 1948fa97dc
1 changed files with 2 additions and 2 deletions

View File

@ -78,8 +78,8 @@ public class MultiLineImportFileTest extends BaseCoreFunctionalTestCase {
final String multiLineText = (String) s.createSQLQuery( "SELECT text FROM test_data WHERE id = 2" ) final String multiLineText = (String) s.createSQLQuery( "SELECT text FROM test_data WHERE id = 2" )
.uniqueResult(); .uniqueResult();
// "Multi-line comment line 1\r\n-- line 2'\r\n/* line 3 */" // "Multi-line comment line 1\n-- line 2'\n/* line 3 */"
final String expected = String.format( "Multi-line comment line 1%n-- line 2'%n/* line 3 */" ); final String expected = String.format( "Multi-line comment line 1\n-- line 2'\n/* line 3 */" );
assertEquals( "Multi-line string inserted incorrectly", expected, multiLineText ); assertEquals( "Multi-line string inserted incorrectly", expected, multiLineText );
String empty = (String) s.createSQLQuery( "SELECT text FROM test_data WHERE id = 3" ).uniqueResult(); String empty = (String) s.createSQLQuery( "SELECT text FROM test_data WHERE id = 3" ).uniqueResult();