Skip to content

Commit

Permalink
[eclipse#1455] Fix line endings for JavaConverterTest.
Browse files Browse the repository at this point in the history
Signed-off-by: Arne Deutsch <Arne.Deutsch@itemis.de>
  • Loading branch information
ArneDeutsch committed Jan 10, 2020
1 parent 39f0a9b commit d2a9b64
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1075,16 +1075,15 @@ class JavaConverterTest extends AbstractXtendTestCase {
}

@Test def void testRichStringCase4() throws Exception {
assertEquals(
"public String someVar=\".\"
public String loadingURI='''classpath:/«('''«someVar»LoadingResourceWithError''').replace(Character.valueOf('.').charValue, Character.valueOf('/').charValue)».xtexterror'''",
toXtendClassBodyDeclr(
assertEquals("public String someVar=\".\"
public String loadingURI='''classpath:/«('''«someVar»LoadingResourceWithError''').replace(Character.valueOf('.').charValue, Character.valueOf('/').charValue)».xtexterror'''".
toUnixLineSeparator, toXtendClassBodyDeclr(
'''
public String someVar=".";
public String loadingURI = "classpath:/"
+ (someVar + "LoadingResourceWithError").replace('.', '/')
+ ".xtexterror";
'''))
public String someVar=".";
public String loadingURI = "classpath:/"
+ (someVar + "LoadingResourceWithError").replace('.', '/')
+ ".xtexterror";
''').toUnixLineSeparator)
}

@Test def void testRichStringSpecialCase() throws Exception {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1781,8 +1781,7 @@ public void testRichStringCase4() throws Exception {
_builder.append("+ \".xtexterror\";");
_builder.newLine();
Assert.assertEquals(
"public String someVar=\".\"\npublic String loadingURI=\'\'\'classpath:/«(\'\'\'«someVar»LoadingResourceWithError\'\'\').replace(Character.valueOf(\'.\').charValue, Character.valueOf(\'/\').charValue)».xtexterror\'\'\'",
this.toXtendClassBodyDeclr(_builder));
Strings.toUnixLineSeparator("public String someVar=\".\"\npublic String loadingURI=\'\'\'classpath:/«(\'\'\'«someVar»LoadingResourceWithError\'\'\').replace(Character.valueOf(\'.\').charValue, Character.valueOf(\'/\').charValue)».xtexterror\'\'\'"), Strings.toUnixLineSeparator(this.toXtendClassBodyDeclr(_builder)));
}

@Test
Expand Down

0 comments on commit d2a9b64

Please sign in to comment.