Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'tests/org.eclipse.etrice.generator.tests')
-rw-r--r--tests/org.eclipse.etrice.generator.tests/src/org/eclipse/etrice/generator/base/TestDetailCodeTranslator.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/org.eclipse.etrice.generator.tests/src/org/eclipse/etrice/generator/base/TestDetailCodeTranslator.java b/tests/org.eclipse.etrice.generator.tests/src/org/eclipse/etrice/generator/base/TestDetailCodeTranslator.java
index 6d782feaa..e82fe49d7 100644
--- a/tests/org.eclipse.etrice.generator.tests/src/org/eclipse/etrice/generator/base/TestDetailCodeTranslator.java
+++ b/tests/org.eclipse.etrice.generator.tests/src/org/eclipse/etrice/generator/base/TestDetailCodeTranslator.java
@@ -424,8 +424,13 @@ public class TestDetailCodeTranslator {
@Test (timeout=1000)
public void testLargeFile() {
DetailCode dc = getLargeFile();
+
+ // this adds a trailing \n
String orig = RoomHelpers.getDetailCode(dc);
+ // remove trailing \n
+ orig = orig.substring(0, orig.length()-1);
+
String result = translator.translateDetailCode(dc);
assertEquals("large file", orig, result);

Back to the top