aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorszarnekow2009-02-19 19:10:38 (EST)
committersefftinge2009-02-19 19:10:38 (EST)
commit935aec4a20fefffdf30117448988812b0e9c855c (patch)
treea2ffb8f9a060f5db2b2679fb09169f0526289a47
parent02fb0775f15acbc3371439c9f62619dbc3dba385 (diff)
downloadorg.eclipse.xtext-935aec4a20fefffdf30117448988812b0e9c855c.zip
org.eclipse.xtext-935aec4a20fefffdf30117448988812b0e9c855c.tar.gz
org.eclipse.xtext-935aec4a20fefffdf30117448988812b0e9c855c.tar.bz2
Id-String was expanded accidently on commit
-rw-r--r--tests/org.eclipse.xtext.generator.tests/src/org/eclipse/xtext/util/LineFilterOutputStreamTest.java20
1 files changed, 10 insertions, 10 deletions
diff --git a/tests/org.eclipse.xtext.generator.tests/src/org/eclipse/xtext/util/LineFilterOutputStreamTest.java b/tests/org.eclipse.xtext.generator.tests/src/org/eclipse/xtext/util/LineFilterOutputStreamTest.java
index 826043c..20b5e2e 100644
--- a/tests/org.eclipse.xtext.generator.tests/src/org/eclipse/xtext/util/LineFilterOutputStreamTest.java
+++ b/tests/org.eclipse.xtext.generator.tests/src/org/eclipse/xtext/util/LineFilterOutputStreamTest.java
@@ -27,12 +27,12 @@ public class LineFilterOutputStreamTest extends TestCase {
protected void setUp() throws Exception {
super.setUp();
result = new ByteArrayOutputStream(500);
- filterStream = new LineFilterOutputStream(result, " * $Id$");
+ filterStream = new LineFilterOutputStream(result, " * $Id" + "$");
input = "/**\n" +
" * <copyright>\n" +
" * </copyright>\n" +
" *\n" +
- " * $Id$\n" +
+ " * $Id" + "$\n" +
" */\n" +
"package foo";
}
@@ -45,14 +45,14 @@ public class LineFilterOutputStreamTest extends TestCase {
" * <copyright>\n" +
" * </copyright>\n" +
" *\n" +
-// " * $Id$\n" +
+// " * $Id" + "$\n" +
" */\n" +
"package foo";
assertEquals(expected, res);
}
public void testWrite_02() throws IOException {
- filterStream.write(" * $Id$".getBytes());
+ filterStream.write((" * $Id" + "$").getBytes());
filterStream.flush();
String res = new String(result.toByteArray());
String expected = "";
@@ -60,7 +60,7 @@ public class LineFilterOutputStreamTest extends TestCase {
}
public void testWrite_03() throws IOException {
- filterStream.write("\n * $Id$".getBytes());
+ filterStream.write(("\n * $Id" + "$").getBytes());
filterStream.flush();
String res = new String(result.toByteArray());
String expected = "\n";
@@ -68,7 +68,7 @@ public class LineFilterOutputStreamTest extends TestCase {
}
public void testWrite_04() throws IOException {
- filterStream.write(" * $Id$\n".getBytes());
+ filterStream.write((" * $Id" + "$\n").getBytes());
filterStream.flush();
String res = new String(result.toByteArray());
String expected = "";
@@ -76,7 +76,7 @@ public class LineFilterOutputStreamTest extends TestCase {
}
public void testWrite_05() throws IOException {
- filterStream.write("*\n * $Id$".getBytes());
+ filterStream.write(("*\n * $Id" + "$").getBytes());
filterStream.flush();
String res = new String(result.toByteArray());
String expected = "*\n";
@@ -84,7 +84,7 @@ public class LineFilterOutputStreamTest extends TestCase {
}
public void testWrite_06() throws IOException {
- filterStream.write(" * $Id$\n *".getBytes());
+ filterStream.write((" * $Id" + "$\n *").getBytes());
filterStream.flush();
String res = new String(result.toByteArray());
String expected = " *";
@@ -92,7 +92,7 @@ public class LineFilterOutputStreamTest extends TestCase {
}
public void testWrite_07() throws IOException {
- filterStream.write(" * $Id$\n *\n".getBytes());
+ filterStream.write((" * $Id" + "$\n *\n").getBytes());
filterStream.flush();
String res = new String(result.toByteArray());
String expected = " *\n";
@@ -100,7 +100,7 @@ public class LineFilterOutputStreamTest extends TestCase {
}
public void testWrite_08() throws IOException {
- filterStream.write(" * $Id$\n */".getBytes());
+ filterStream.write((" * $Id" + "$\n */").getBytes());
filterStream.flush();
String res = new String(result.toByteArray());
String expected = " */";