01: package vqwiki;
02:
03: import junit.framework.TestCase;
04: import org.apache.log4j.Logger;
05: import vqwiki.utils.DiffUtil;
06:
07: /**
08: Very Quick Wiki - WikiWikiWeb clone
09: Copyright (C) 2001-2002 Gareth Cronin
10:
11: This program is free software; you can redistribute it and/or modify
12: it under the terms of the latest version of the GNU Lesser General
13: Public License as published by the Free Software Foundation;
14:
15: This program is distributed in the hope that it will be useful,
16: but WITHOUT ANY WARRANTY; without even the implied warranty of
17: MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18: GNU Lesser General Public License for more details.
19:
20: You should have received a copy of the GNU Lesser General Public License
21: along with this program (gpl.txt); if not, write to the Free Software
22: Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
23: */
24:
25: public class TestDiff extends TestCase {
26:
27: protected static Logger logger = Logger.getLogger(TestDiff.class);
28:
29: /**
30: *
31: */
32: public TestDiff(String name) {
33: super (name);
34: }
35:
36: /**
37: *
38: */
39: public void testStringDiff() throws Exception {
40: String string1 = "This is a string";
41: String string2 = "This is a string\nwith a bit extra";
42: logger.debug(DiffUtil.diff(string1, string2, false));
43: }
44: }
|