test.tests
Class SimpleTest

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by test.tests.SimpleTest
All Implemented Interfaces:
junit.framework.Test

public class SimpleTest
extends junit.framework.TestCase

This Library implements a simple patch algorithm which is able to process the output of diff in normal format. This class implements a simple test based on the example text from the GNU diff/patch documentation. See the link below for more information. see http://www.gnu.org/software/diffutils/manual/html_mono/diff.html#Normal

          Copyright (c) 2007 Dominik Schulz

          This file is part of jPatchLib.

          jPatchLib is free software; you can redistribute it and/or modify
          it under the terms of the GNU General Public License as published by
          the Free Software Foundation; either version 2 of the License, or
          (at your option) any later version.

          jPatchLib 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 General Public License for more details.

          You should have received a copy of the GNU General Public License
          along with jPatchLib; if not, write to the Free Software
          Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 

Author:
Dominik

Field Summary
private  java.lang.String diff
           
private  java.lang.String lao
           
private  java.lang.String tzu
           
 
Constructor Summary
SimpleTest()
           
 
Method Summary
protected  void setUp()
           
protected  void tearDown()
           
 void testPatch()
           
 
Methods inherited from class junit.framework.TestCase
countTestCases, createResult, getName, run, run, runBare, runTest, setName, toString
 
Methods inherited from class junit.framework.Assert
assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, fail, fail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

lao

private java.lang.String lao

tzu

private java.lang.String tzu

diff

private java.lang.String diff
Constructor Detail

SimpleTest

public SimpleTest()
Method Detail

setUp

protected void setUp()
              throws java.lang.Exception
Overrides:
setUp in class junit.framework.TestCase
Throws:
java.lang.Exception

tearDown

protected void tearDown()
                 throws java.lang.Exception
Overrides:
tearDown in class junit.framework.TestCase
Throws:
java.lang.Exception

testPatch

public final void testPatch()