Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean Michel-Lemieux2003-09-29 19:27:43 +0000
committerJean Michel-Lemieux2003-09-29 19:27:43 +0000
commit976e6f28b0597d71e8cb152904f8d82d6ea2b37c (patch)
tree3dd8c788098bcf3347854829877206703d6b1526
parent9d496d5dfc29f48537f3d06094010aca0a7c5ea4 (diff)
downloadeclipse.platform.team-976e6f28b0597d71e8cb152904f8d82d6ea2b37c.tar.gz
eclipse.platform.team-976e6f28b0597d71e8cb152904f8d82d6ea2b37c.tar.xz
eclipse.platform.team-976e6f28b0597d71e8cb152904f8d82d6ea2b37c.zip
Made randomLines smaller so that instead of files having one long line they have several smaller lines. This is to help merge conflict testing.
-rw-r--r--tests/org.eclipse.team.tests.cvs.core/src/org/eclipse/team/tests/ccvs/core/EclipseTest.java11
1 files changed, 6 insertions, 5 deletions
diff --git a/tests/org.eclipse.team.tests.cvs.core/src/org/eclipse/team/tests/ccvs/core/EclipseTest.java b/tests/org.eclipse.team.tests.cvs.core/src/org/eclipse/team/tests/ccvs/core/EclipseTest.java
index a4ee38f3a..486fd295a 100644
--- a/tests/org.eclipse.team.tests.cvs.core/src/org/eclipse/team/tests/ccvs/core/EclipseTest.java
+++ b/tests/org.eclipse.team.tests.cvs.core/src/org/eclipse/team/tests/ccvs/core/EclipseTest.java
@@ -71,15 +71,16 @@ public class EclipseTest extends EclipseWorkspaceTest {
protected static IProgressMonitor DEFAULT_MONITOR = new NullProgressMonitor();
protected static final int RANDOM_CONTENT_SIZE = 3876;
-
- /**
- * Constructor for CVSBlackBoxTest.
- */
+ protected static String eol = System.getProperty("line.separator");
+
public EclipseTest() {
super();
+ if (eol == null) eol = "\n";
}
+
public EclipseTest(String name) {
super(name);
+ if (eol == null) eol = "\n";
}
/*
@@ -583,7 +584,7 @@ public class EclipseTest extends EclipseWorkspaceTest {
protected static InputStream getRandomContents(int sizeAtLeast) {
StringBuffer randomStuff = new StringBuffer(sizeAtLeast + 100);
while (randomStuff.length() < sizeAtLeast) {
- randomStuff.append(getRandomSnippet());
+ randomStuff.append(getRandomSnippet() + eol);
}
return new ByteArrayInputStream(randomStuff.toString().getBytes());
}

Back to the top