GATE
Version 3.1-2270

gate.xml
Class TestRepositioningInfo

java.lang.Object
  extended by junit.framework.Assert
      extended by junit.framework.TestCase
          extended by gate.xml.TestRepositioningInfo
All Implemented Interfaces:
junit.framework.Test

public class TestRepositioningInfo
extends junit.framework.TestCase

This class tests if Repositinioning Information works. It creates a document using an inline xml file with preserveOriginalContent and collectRepositioningInfo options keeping true, which has all sorts of special entities like &, " etc. + it contains both kind of unix and dos types new line characters. It then saves the document to the temporary location on the disk using "save preserving document format" option and then compares the contents of both the original and the temporary document to see if they are equal.


Constructor Summary
TestRepositioningInfo(String dummy)
          Constructor
 
Method Summary
protected  void setUp()
          This method sets up the parameters for the files to be tested
static junit.framework.Test suite()
          Test suite routine for the test runner
 void tearDown()
          Fixture tear down - removes the document resource
 void testRepositioningInfo()
          This method tests if Repositinioning Information works.
 
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
 

Constructor Detail

TestRepositioningInfo

public TestRepositioningInfo(String dummy)
Constructor

Method Detail

setUp

protected void setUp()
This method sets up the parameters for the files to be tested

Overrides:
setUp in class junit.framework.TestCase

tearDown

public void tearDown()
              throws Exception
Fixture tear down - removes the document resource

Overrides:
tearDown in class junit.framework.TestCase
Throws:
Exception

testRepositioningInfo

public void testRepositioningInfo()
                           throws Exception
This method tests if Repositinioning Information works. It creates a document using an xml file with preserveOriginalContent and collectRepositioningInfo options keeping true and which has all sorts of special entities like &, " etc. + it contains both kind of unix and dos stype new line characters. It then saves the document to the temporary location on the disk using "save preserving document format" option and then compares the contents of both the original and the temporary document to see if they are equal.

Throws:
Exception

suite

public static junit.framework.Test suite()
Test suite routine for the test runner


GATE
Version 3.1-2270