[jsword-svn] r2153 - trunk/jsword/src/test/java/org/crosswire/common/diff
dmsmith at crosswire.org
dmsmith at crosswire.org
Sat Apr 9 09:14:38 MST 2011
Author: dmsmith
Date: 2011-04-09 09:14:38 -0700 (Sat, 09 Apr 2011)
New Revision: 2153
Modified:
trunk/jsword/src/test/java/org/crosswire/common/diff/AllTests.java
trunk/jsword/src/test/java/org/crosswire/common/diff/BitapTest.java
trunk/jsword/src/test/java/org/crosswire/common/diff/CommonalityTest.java
trunk/jsword/src/test/java/org/crosswire/common/diff/DiffCleanupTest.java
trunk/jsword/src/test/java/org/crosswire/common/diff/DiffTest.java
trunk/jsword/src/test/java/org/crosswire/common/diff/DifferenceEngineTest.java
trunk/jsword/src/test/java/org/crosswire/common/diff/DifferenceTest.java
trunk/jsword/src/test/java/org/crosswire/common/diff/LineMapTest.java
trunk/jsword/src/test/java/org/crosswire/common/diff/MatchTest.java
trunk/jsword/src/test/java/org/crosswire/common/diff/PatchEntryTest.java
trunk/jsword/src/test/java/org/crosswire/common/diff/PatchTest.java
trunk/jsword/src/test/java/org/crosswire/common/diff/diff_match_patch_test.java
Log:
Improve JSword tests
Modified: trunk/jsword/src/test/java/org/crosswire/common/diff/AllTests.java
===================================================================
--- trunk/jsword/src/test/java/org/crosswire/common/diff/AllTests.java 2011-04-09 16:13:42 UTC (rev 2152)
+++ trunk/jsword/src/test/java/org/crosswire/common/diff/AllTests.java 2011-04-09 16:14:38 UTC (rev 2153)
@@ -14,7 +14,7 @@
* 59 Temple Place - Suite 330
* Boston, MA 02111-1307, USA
*
- * Copyright: 2005
+ * Copyright: 2005-2011
* The copyright to this program is held by it's authors.
*
* ID: $Id$
@@ -29,7 +29,7 @@
*
* @see gnu.lgpl.License for license details.<br>
* The copyright to this program is held by it's authors.
- * @author Joe Walker [joe at eireneh dot com]
+ * @author DM Smith [dmsmith555 at yahoo dot com]
*/
public class AllTests {
public static Test suite() {
Modified: trunk/jsword/src/test/java/org/crosswire/common/diff/BitapTest.java
===================================================================
--- trunk/jsword/src/test/java/org/crosswire/common/diff/BitapTest.java 2011-04-09 16:13:42 UTC (rev 2152)
+++ trunk/jsword/src/test/java/org/crosswire/common/diff/BitapTest.java 2011-04-09 16:14:38 UTC (rev 2153)
@@ -1,3 +1,24 @@
+/**
+ * Distribution License:
+ * JSword is free software; you can redistribute it and/or modify it under
+ * the terms of the GNU Lesser General Public License, version 2.1 as published by
+ * the Free Software Foundation. This program is distributed in the hope
+ * that it will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+ * See the GNU Lesser General Public License for more details.
+ *
+ * The License is available on the internet at:
+ * http://www.gnu.org/copyleft/lgpl.html
+ * or by writing to:
+ * Free Software Foundation, Inc.
+ * 59 Temple Place - Suite 330
+ * Boston, MA 02111-1307, USA
+ *
+ * Copyright: 2005-2011
+ * The copyright to this program is held by it's authors.
+ *
+ * ID: $Id$
+ */
package org.crosswire.common.diff;
/* Test harness for diff_match_patch.java
@@ -12,6 +33,16 @@
import junit.framework.TestCase;
+/**
+ * JUnit Test.
+ *
+ * Based on the LGPL Diff_Match_Patch v1.5 javascript of Neil Fraser, Copyright (C) 2006<br>
+ * <a href="http://neil.fraser.name/software/diff_match_patch/">http://neil.fraser.name/software/diff_match_patch/</a>
+ *
+ * @see gnu.lgpl.License for license details.<br>
+ * The copyright to this program is held by it's authors.
+ * @author DM Smith [dmsmith555 at yahoo dot com]
+ */
public class BitapTest extends TestCase {
@Override
Modified: trunk/jsword/src/test/java/org/crosswire/common/diff/CommonalityTest.java
===================================================================
--- trunk/jsword/src/test/java/org/crosswire/common/diff/CommonalityTest.java 2011-04-09 16:13:42 UTC (rev 2152)
+++ trunk/jsword/src/test/java/org/crosswire/common/diff/CommonalityTest.java 2011-04-09 16:14:38 UTC (rev 2153)
@@ -1,3 +1,24 @@
+/**
+ * Distribution License:
+ * JSword is free software; you can redistribute it and/or modify it under
+ * the terms of the GNU Lesser General Public License, version 2.1 as published by
+ * the Free Software Foundation. This program is distributed in the hope
+ * that it will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+ * See the GNU Lesser General Public License for more details.
+ *
+ * The License is available on the internet at:
+ * http://www.gnu.org/copyleft/lgpl.html
+ * or by writing to:
+ * Free Software Foundation, Inc.
+ * 59 Temple Place - Suite 330
+ * Boston, MA 02111-1307, USA
+ *
+ * Copyright: 2005-2011
+ * The copyright to this program is held by it's authors.
+ *
+ * ID: $Id$
+ */
package org.crosswire.common.diff;
/* Test harness for diff_match_patch.java
@@ -9,6 +30,16 @@
import junit.framework.TestCase;
+/**
+ * JUnit Test.
+ *
+ * Based on the LGPL Diff_Match_Patch v1.5 javascript of Neil Fraser, Copyright (C) 2006<br>
+ * <a href="http://neil.fraser.name/software/diff_match_patch/">http://neil.fraser.name/software/diff_match_patch/</a>
+ *
+ * @see gnu.lgpl.License for license details.<br>
+ * The copyright to this program is held by it's authors.
+ * @author DM Smith [dmsmith555 at yahoo dot com]
+ */
public class CommonalityTest extends TestCase {
@Override
Modified: trunk/jsword/src/test/java/org/crosswire/common/diff/DiffCleanupTest.java
===================================================================
--- trunk/jsword/src/test/java/org/crosswire/common/diff/DiffCleanupTest.java 2011-04-09 16:13:42 UTC (rev 2152)
+++ trunk/jsword/src/test/java/org/crosswire/common/diff/DiffCleanupTest.java 2011-04-09 16:14:38 UTC (rev 2153)
@@ -1,3 +1,24 @@
+/**
+ * Distribution License:
+ * JSword is free software; you can redistribute it and/or modify it under
+ * the terms of the GNU Lesser General Public License, version 2.1 as published by
+ * the Free Software Foundation. This program is distributed in the hope
+ * that it will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+ * See the GNU Lesser General Public License for more details.
+ *
+ * The License is available on the internet at:
+ * http://www.gnu.org/copyleft/lgpl.html
+ * or by writing to:
+ * Free Software Foundation, Inc.
+ * 59 Temple Place - Suite 330
+ * Boston, MA 02111-1307, USA
+ *
+ * Copyright: 2005-2011
+ * The copyright to this program is held by it's authors.
+ *
+ * ID: $Id$
+ */
package org.crosswire.common.diff;
import java.util.ArrayList;
@@ -6,6 +27,16 @@
import junit.framework.TestCase;
+/**
+ * JUnit Test.
+ *
+ * Based on the LGPL Diff_Match_Patch v1.5 javascript of Neil Fraser, Copyright (C) 2006<br>
+ * <a href="http://neil.fraser.name/software/diff_match_patch/">http://neil.fraser.name/software/diff_match_patch/</a>
+ *
+ * @see gnu.lgpl.License for license details.<br>
+ * The copyright to this program is held by it's authors.
+ * @author DM Smith [dmsmith555 at yahoo dot com]
+ */
public class DiffCleanupTest extends TestCase {
@Override
Modified: trunk/jsword/src/test/java/org/crosswire/common/diff/DiffTest.java
===================================================================
--- trunk/jsword/src/test/java/org/crosswire/common/diff/DiffTest.java 2011-04-09 16:13:42 UTC (rev 2152)
+++ trunk/jsword/src/test/java/org/crosswire/common/diff/DiffTest.java 2011-04-09 16:14:38 UTC (rev 2153)
@@ -1,3 +1,24 @@
+/**
+ * Distribution License:
+ * JSword is free software; you can redistribute it and/or modify it under
+ * the terms of the GNU Lesser General Public License, version 2.1 as published by
+ * the Free Software Foundation. This program is distributed in the hope
+ * that it will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+ * See the GNU Lesser General Public License for more details.
+ *
+ * The License is available on the internet at:
+ * http://www.gnu.org/copyleft/lgpl.html
+ * or by writing to:
+ * Free Software Foundation, Inc.
+ * 59 Temple Place - Suite 330
+ * Boston, MA 02111-1307, USA
+ *
+ * Copyright: 2005-2011
+ * The copyright to this program is held by it's authors.
+ *
+ * ID: $Id$
+ */
package org.crosswire.common.diff;
/* Test harness for diff_match_patch.java
@@ -13,6 +34,16 @@
import junit.framework.TestCase;
+/**
+ * JUnit Test.
+ *
+ * Based on the LGPL Diff_Match_Patch v1.5 javascript of Neil Fraser, Copyright (C) 2006<br>
+ * <a href="http://neil.fraser.name/software/diff_match_patch/">http://neil.fraser.name/software/diff_match_patch/</a>
+ *
+ * @see gnu.lgpl.License for license details.<br>
+ * The copyright to this program is held by it's authors.
+ * @author DM Smith [dmsmith555 at yahoo dot com]
+ */
public class DiffTest extends TestCase {
@Override
Modified: trunk/jsword/src/test/java/org/crosswire/common/diff/DifferenceEngineTest.java
===================================================================
--- trunk/jsword/src/test/java/org/crosswire/common/diff/DifferenceEngineTest.java 2011-04-09 16:13:42 UTC (rev 2152)
+++ trunk/jsword/src/test/java/org/crosswire/common/diff/DifferenceEngineTest.java 2011-04-09 16:14:38 UTC (rev 2153)
@@ -1,3 +1,24 @@
+/**
+ * Distribution License:
+ * JSword is free software; you can redistribute it and/or modify it under
+ * the terms of the GNU Lesser General Public License, version 2.1 as published by
+ * the Free Software Foundation. This program is distributed in the hope
+ * that it will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+ * See the GNU Lesser General Public License for more details.
+ *
+ * The License is available on the internet at:
+ * http://www.gnu.org/copyleft/lgpl.html
+ * or by writing to:
+ * Free Software Foundation, Inc.
+ * 59 Temple Place - Suite 330
+ * Boston, MA 02111-1307, USA
+ *
+ * Copyright: 2005-2011
+ * The copyright to this program is held by it's authors.
+ *
+ * ID: $Id$
+ */
package org.crosswire.common.diff;
/* Test harness for diff_match_patch.java
@@ -15,6 +36,16 @@
import junit.framework.TestCase;
+/**
+ * JUnit Test.
+ *
+ * Based on the LGPL Diff_Match_Patch v1.5 javascript of Neil Fraser, Copyright (C) 2006<br>
+ * <a href="http://neil.fraser.name/software/diff_match_patch/">http://neil.fraser.name/software/diff_match_patch/</a>
+ *
+ * @see gnu.lgpl.License for license details.<br>
+ * The copyright to this program is held by it's authors.
+ * @author DM Smith [dmsmith555 at yahoo dot com]
+ */
public class DifferenceEngineTest extends TestCase {
@Override
protected void setUp() {
Modified: trunk/jsword/src/test/java/org/crosswire/common/diff/DifferenceTest.java
===================================================================
--- trunk/jsword/src/test/java/org/crosswire/common/diff/DifferenceTest.java 2011-04-09 16:13:42 UTC (rev 2152)
+++ trunk/jsword/src/test/java/org/crosswire/common/diff/DifferenceTest.java 2011-04-09 16:14:38 UTC (rev 2153)
@@ -1,3 +1,24 @@
+/**
+ * Distribution License:
+ * JSword is free software; you can redistribute it and/or modify it under
+ * the terms of the GNU Lesser General Public License, version 2.1 as published by
+ * the Free Software Foundation. This program is distributed in the hope
+ * that it will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+ * See the GNU Lesser General Public License for more details.
+ *
+ * The License is available on the internet at:
+ * http://www.gnu.org/copyleft/lgpl.html
+ * or by writing to:
+ * Free Software Foundation, Inc.
+ * 59 Temple Place - Suite 330
+ * Boston, MA 02111-1307, USA
+ *
+ * Copyright: 2005-2011
+ * The copyright to this program is held by it's authors.
+ *
+ * ID: $Id$
+ */
package org.crosswire.common.diff;
/* Test harness for diff_match_patch.java
@@ -9,6 +30,16 @@
import junit.framework.TestCase;
+/**
+ * JUnit Test.
+ *
+ * Based on the LGPL Diff_Match_Patch v1.5 javascript of Neil Fraser, Copyright (C) 2006<br>
+ * <a href="http://neil.fraser.name/software/diff_match_patch/">http://neil.fraser.name/software/diff_match_patch/</a>
+ *
+ * @see gnu.lgpl.License for license details.<br>
+ * The copyright to this program is held by it's authors.
+ * @author DM Smith [dmsmith555 at yahoo dot com]
+ */
public class DifferenceTest extends TestCase {
@Override
Modified: trunk/jsword/src/test/java/org/crosswire/common/diff/LineMapTest.java
===================================================================
--- trunk/jsword/src/test/java/org/crosswire/common/diff/LineMapTest.java 2011-04-09 16:13:42 UTC (rev 2152)
+++ trunk/jsword/src/test/java/org/crosswire/common/diff/LineMapTest.java 2011-04-09 16:14:38 UTC (rev 2153)
@@ -1,3 +1,24 @@
+/**
+ * Distribution License:
+ * JSword is free software; you can redistribute it and/or modify it under
+ * the terms of the GNU Lesser General Public License, version 2.1 as published by
+ * the Free Software Foundation. This program is distributed in the hope
+ * that it will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+ * See the GNU Lesser General Public License for more details.
+ *
+ * The License is available on the internet at:
+ * http://www.gnu.org/copyleft/lgpl.html
+ * or by writing to:
+ * Free Software Foundation, Inc.
+ * 59 Temple Place - Suite 330
+ * Boston, MA 02111-1307, USA
+ *
+ * Copyright: 2005-2011
+ * The copyright to this program is held by it's authors.
+ *
+ * ID: $Id$
+ */
package org.crosswire.common.diff;
/* Test harness for diff_match_patch.java
@@ -13,6 +34,16 @@
import junit.framework.TestCase;
+/**
+ * JUnit Test.
+ *
+ * Based on the LGPL Diff_Match_Patch v1.5 javascript of Neil Fraser, Copyright (C) 2006<br>
+ * <a href="http://neil.fraser.name/software/diff_match_patch/">http://neil.fraser.name/software/diff_match_patch/</a>
+ *
+ * @see gnu.lgpl.License for license details.<br>
+ * The copyright to this program is held by it's authors.
+ * @author DM Smith [dmsmith555 at yahoo dot com]
+ */
public class LineMapTest extends TestCase {
@Override
Modified: trunk/jsword/src/test/java/org/crosswire/common/diff/MatchTest.java
===================================================================
--- trunk/jsword/src/test/java/org/crosswire/common/diff/MatchTest.java 2011-04-09 16:13:42 UTC (rev 2152)
+++ trunk/jsword/src/test/java/org/crosswire/common/diff/MatchTest.java 2011-04-09 16:14:38 UTC (rev 2153)
@@ -1,3 +1,24 @@
+/**
+ * Distribution License:
+ * JSword is free software; you can redistribute it and/or modify it under
+ * the terms of the GNU Lesser General Public License, version 2.1 as published by
+ * the Free Software Foundation. This program is distributed in the hope
+ * that it will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+ * See the GNU Lesser General Public License for more details.
+ *
+ * The License is available on the internet at:
+ * http://www.gnu.org/copyleft/lgpl.html
+ * or by writing to:
+ * Free Software Foundation, Inc.
+ * 59 Temple Place - Suite 330
+ * Boston, MA 02111-1307, USA
+ *
+ * Copyright: 2005-2011
+ * The copyright to this program is held by it's authors.
+ *
+ * ID: $Id$
+ */
package org.crosswire.common.diff;
import junit.framework.TestCase;
@@ -2,2 +23,12 @@
+/**
+ * JUnit Test.
+ *
+ * Based on the LGPL Diff_Match_Patch v1.5 javascript of Neil Fraser, Copyright (C) 2006<br>
+ * <a href="http://neil.fraser.name/software/diff_match_patch/">http://neil.fraser.name/software/diff_match_patch/</a>
+ *
+ * @see gnu.lgpl.License for license details.<br>
+ * The copyright to this program is held by it's authors.
+ * @author DM Smith [dmsmith555 at yahoo dot com]
+ */
public class MatchTest extends TestCase {
Modified: trunk/jsword/src/test/java/org/crosswire/common/diff/PatchEntryTest.java
===================================================================
--- trunk/jsword/src/test/java/org/crosswire/common/diff/PatchEntryTest.java 2011-04-09 16:13:42 UTC (rev 2152)
+++ trunk/jsword/src/test/java/org/crosswire/common/diff/PatchEntryTest.java 2011-04-09 16:14:38 UTC (rev 2153)
@@ -1,3 +1,24 @@
+/**
+ * Distribution License:
+ * JSword is free software; you can redistribute it and/or modify it under
+ * the terms of the GNU Lesser General Public License, version 2.1 as published by
+ * the Free Software Foundation. This program is distributed in the hope
+ * that it will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+ * See the GNU Lesser General Public License for more details.
+ *
+ * The License is available on the internet at:
+ * http://www.gnu.org/copyleft/lgpl.html
+ * or by writing to:
+ * Free Software Foundation, Inc.
+ * 59 Temple Place - Suite 330
+ * Boston, MA 02111-1307, USA
+ *
+ * Copyright: 2005-2011
+ * The copyright to this program is held by it's authors.
+ *
+ * ID: $Id$
+ */
package org.crosswire.common.diff;
/* Test harness for diff_match_patch.java
@@ -13,6 +34,16 @@
import junit.framework.TestCase;
+/**
+ * JUnit Test.
+ *
+ * Based on the LGPL Diff_Match_Patch v1.5 javascript of Neil Fraser, Copyright (C) 2006<br>
+ * <a href="http://neil.fraser.name/software/diff_match_patch/">http://neil.fraser.name/software/diff_match_patch/</a>
+ *
+ * @see gnu.lgpl.License for license details.<br>
+ * The copyright to this program is held by it's authors.
+ * @author DM Smith [dmsmith555 at yahoo dot com]
+ */
public class PatchEntryTest extends TestCase {
@Override
protected void setUp() {
Modified: trunk/jsword/src/test/java/org/crosswire/common/diff/PatchTest.java
===================================================================
--- trunk/jsword/src/test/java/org/crosswire/common/diff/PatchTest.java 2011-04-09 16:13:42 UTC (rev 2152)
+++ trunk/jsword/src/test/java/org/crosswire/common/diff/PatchTest.java 2011-04-09 16:14:38 UTC (rev 2153)
@@ -1,3 +1,24 @@
+/**
+ * Distribution License:
+ * JSword is free software; you can redistribute it and/or modify it under
+ * the terms of the GNU Lesser General Public License, version 2.1 as published by
+ * the Free Software Foundation. This program is distributed in the hope
+ * that it will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+ * See the GNU Lesser General Public License for more details.
+ *
+ * The License is available on the internet at:
+ * http://www.gnu.org/copyleft/lgpl.html
+ * or by writing to:
+ * Free Software Foundation, Inc.
+ * 59 Temple Place - Suite 330
+ * Boston, MA 02111-1307, USA
+ *
+ * Copyright: 2005-2011
+ * The copyright to this program is held by it's authors.
+ *
+ * ID: $Id$
+ */
package org.crosswire.common.diff;
/* Test harness for diff_match_patch.java
@@ -11,6 +32,16 @@
import org.crosswire.common.diff.Patch.PatchResults;
+/**
+ * JUnit Test.
+ *
+ * Based on the LGPL Diff_Match_Patch v1.5 javascript of Neil Fraser, Copyright (C) 2006<br>
+ * <a href="http://neil.fraser.name/software/diff_match_patch/">http://neil.fraser.name/software/diff_match_patch/</a>
+ *
+ * @see gnu.lgpl.License for license details.<br>
+ * The copyright to this program is held by it's authors.
+ * @author DM Smith [dmsmith555 at yahoo dot com]
+ */
public class PatchTest extends TestCase {
@Override
protected void setUp() {
Modified: trunk/jsword/src/test/java/org/crosswire/common/diff/diff_match_patch_test.java
===================================================================
--- trunk/jsword/src/test/java/org/crosswire/common/diff/diff_match_patch_test.java 2011-04-09 16:13:42 UTC (rev 2152)
+++ trunk/jsword/src/test/java/org/crosswire/common/diff/diff_match_patch_test.java 2011-04-09 16:14:38 UTC (rev 2153)
@@ -1,3 +1,24 @@
+/**
+ * Distribution License:
+ * JSword is free software; you can redistribute it and/or modify it under
+ * the terms of the GNU Lesser General Public License, version 2.1 as published by
+ * the Free Software Foundation. This program is distributed in the hope
+ * that it will be useful, but WITHOUT ANY WARRANTY; without even the
+ * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
+ * See the GNU Lesser General Public License for more details.
+ *
+ * The License is available on the internet at:
+ * http://www.gnu.org/copyleft/lgpl.html
+ * or by writing to:
+ * Free Software Foundation, Inc.
+ * 59 Temple Place - Suite 330
+ * Boston, MA 02111-1307, USA
+ *
+ * Copyright: 2005-2011
+ * The copyright to this program is held by it's authors.
+ *
+ * ID: $Id$
+ */
package org.crosswire.common.diff;
/* Test harness for diff_match_patch.java
@@ -9,6 +30,16 @@
import junit.framework.TestCase;
+/**
+ * JUnit Test.
+ *
+ * Based on the LGPL Diff_Match_Patch v1.5 javascript of Neil Fraser, Copyright (C) 2006<br>
+ * <a href="http://neil.fraser.name/software/diff_match_patch/">http://neil.fraser.name/software/diff_match_patch/</a>
+ *
+ * @see gnu.lgpl.License for license details.<br>
+ * The copyright to this program is held by it's authors.
+ * @author DM Smith [dmsmith555 at yahoo dot com]
+ */
public class diff_match_patch_test extends TestCase {
@Override
More information about the jsword-svn
mailing list