You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@uima.apache.org by mb...@apache.org on 2007/06/01 13:51:27 UTC
svn commit: r543468 - in /incubator/uima/uimaj/trunk/uimaj-tools/src/test:
java/org/apache/uima/tools/pear/merger/ resources/pearTests/pearMergerTests/
Author: mbaessler
Date: Fri Jun 1 04:51:26 2007
New Revision: 543468
URL: http://svn.apache.org/viewvc?view=rev&rev=543468
Log:
UIMA-269
update the PEAR merging test PEAR files, now the merged PEAR file can be processed.
JIRA ticket https://issues.apache.org/jira/browse/UIMA-269
Modified:
incubator/uima/uimaj/trunk/uimaj-tools/src/test/java/org/apache/uima/tools/pear/merger/PearMergerTest.java
incubator/uima/uimaj/trunk/uimaj-tools/src/test/resources/pearTests/pearMergerTests/uima.example.DateTime.pear
incubator/uima/uimaj/trunk/uimaj-tools/src/test/resources/pearTests/pearMergerTests/uima.example.RoomNumber.pear
Modified: incubator/uima/uimaj/trunk/uimaj-tools/src/test/java/org/apache/uima/tools/pear/merger/PearMergerTest.java
URL: http://svn.apache.org/viewvc/incubator/uima/uimaj/trunk/uimaj-tools/src/test/java/org/apache/uima/tools/pear/merger/PearMergerTest.java?view=diff&rev=543468&r1=543467&r2=543468
==============================================================================
--- incubator/uima/uimaj/trunk/uimaj-tools/src/test/java/org/apache/uima/tools/pear/merger/PearMergerTest.java (original)
+++ incubator/uima/uimaj/trunk/uimaj-tools/src/test/java/org/apache/uima/tools/pear/merger/PearMergerTest.java Fri Jun 1 04:51:26 2007
@@ -64,7 +64,7 @@
protected void setUp() throws Exception {
// create temporary working directory
- File tempFile = File.createTempFile("pear_merger_test_", "~tmp");
+ File tempFile = File.createTempFile("pear_merger_test_", "tmp");
if (tempFile.delete()) {
File tempDir = tempFile;
if (tempDir.mkdirs())
@@ -86,6 +86,8 @@
* into the output aggregate PEAR. Then, the output PEAR is installed by using
* org.apache.uima.pear.tools.InstallationController, and the installed component is verified by
* instantiating the aggregate TAE and creating CAS object.
+ *
+ * @throws Exception
*/
public void testPearMerger() throws Exception {
// check temporary working directory
@@ -128,8 +130,13 @@
AnalysisEngine ae = UIMAFramework.produceAnalysisEngine(aeSpec, resMngr, null);
Assert.assertTrue(ae != null);
// create CAS object
- CAS tCas = ae.newCAS();
- Assert.assertTrue(tCas != null);
+ CAS cas = ae.newCAS();
+ Assert.assertTrue(cas != null);
+
+ //process CAS
+ cas.setDocumentText("Sample text for testing");
+ ae.process(cas);
+
// clean-up the results
pmController.cleanUp();
}
Modified: incubator/uima/uimaj/trunk/uimaj-tools/src/test/resources/pearTests/pearMergerTests/uima.example.DateTime.pear
URL: http://svn.apache.org/viewvc/incubator/uima/uimaj/trunk/uimaj-tools/src/test/resources/pearTests/pearMergerTests/uima.example.DateTime.pear?view=diff&rev=543468&r1=543467&r2=543468
==============================================================================
Binary files - no diff available.
Modified: incubator/uima/uimaj/trunk/uimaj-tools/src/test/resources/pearTests/pearMergerTests/uima.example.RoomNumber.pear
URL: http://svn.apache.org/viewvc/incubator/uima/uimaj/trunk/uimaj-tools/src/test/resources/pearTests/pearMergerTests/uima.example.RoomNumber.pear?view=diff&rev=543468&r1=543467&r2=543468
==============================================================================
Binary files - no diff available.