LUCENE-946: replace text from an online collection (used in

few test cases) with text that is surely 100% free.


git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@552009 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Doron Cohen 2007-06-29 19:43:19 +00:00
parent 71f2c1da8b
commit ba90fb06c1
2 changed files with 29 additions and 22 deletions

View File

@ -24,17 +24,21 @@ public class SimpleDocMaker extends BasicDocMaker {
private int docID = 0;
static final String DOC_TEXT = // from a public first aid info at http://firstaid.ie.eu.org
"Well it may be a little dramatic but sometimes it true. " +
"If you call the emergency medical services to an incident, " +
"your actions have started the chain of survival. " +
"You have acted to help someone you may not even know. " +
"First aid is helping, first aid is making that call, " +
"putting a Band-Aid on a small wound, controlling bleeding in large " +
"wounds or providing CPR for a collapsed person whose not breathing " +
"and heart has stopped beating. You can help yourself, your loved " +
"ones and the stranger whose life may depend on you being in the " +
"right place at the right time with the right knowledge.";
static final String DOC_TEXT =
"Well, this is just some plain text we use for creating the " +
"test documents. It used to be a text from an online collection " +
"devoted to first aid, but if there was there an (online) lawyers " +
"first aid collection with legal advices, \"it\" might have quite " +
"probably advised one not to include \"it\"'s text or the text of " +
"any other online collection in one's code, unless one has money " +
"that one don't need and one is happy to donate for lawyers " +
"charity. Anyhow at some point, rechecking the usage of this text, " +
"it became uncertain that this text is free to use, because " +
"the web site in the disclaimer of he eBook containing that text " +
"was not responding anymore, and at the same time, in projGut, " +
"searching for first aid no longer found that eBook as well. " +
"So here we are, with a perhaps much less interesting " +
"text for the test, but oh much much safer. ";
// return a new docid
private synchronized int newdocid() throws NoMoreDataException {

View File

@ -49,17 +49,20 @@ public abstract class FunctionTestSetup extends TestCase {
protected static final String FLOAT_FIELD = "fff";
private static final String DOC_TEXT_LINES[] = {
// from a public first aid info at http://firstaid.ie.eu.org
"Well it may be a little dramatic but sometimes it true. ",
"If you call the emergency medical services to an incident, ",
"your actions have started the chain of survival. ",
"You have acted to help someone you may not even know. ",
"First aid is helping, first aid is making that call, ",
"putting a Band-Aid on a small wound, controlling bleeding in large ",
"wounds or providing CPR for a collapsed person whose not breathing ",
"and heart has stopped beating. You can help yourself, your loved ",
"ones and the stranger whose life may depend on you being in the ",
"right place at the right time with the right knowledge.",
"Well, this is just some plain text we use for creating the ",
"test documents. It used to be a text from an online collection ",
"devoted to first aid, but if there was there an (online) lawyers ",
"first aid collection with legal advices, \"it\" might have quite ",
"probably advised one not to include \"it\"'s text or the text of ",
"any other online collection in one's code, unless one has money ",
"that one don't need and one is happy to donate for lawyers ",
"charity. Anyhow at some point, rechecking the usage of this text, ",
"it became uncertain that this text is free to use, because ",
"the web site in the disclaimer of he eBook containing that text ",
"was not responding anymore, and at the same time, in projGut, ",
"searching for first aid no longer found that eBook as well. ",
"So here we are, with a perhaps much less interesting ",
"text for the test, but oh much much safer. ",
};
protected Directory dir;