ctakes-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From james-mas...@apache.org
Subject svn commit: r1511813 - /ctakes/branches/ctakes-3.1.0/ctakes-regression-test/src/test/java/org/apache/ctakes/regression/test/RegressionPipelineTest.java
Date Thu, 08 Aug 2013 14:45:47 GMT
Author: james-masanz
Date: Thu Aug  8 14:45:47 2013
New Revision: 1511813

URL: http://svn.apache.org/r1511813
Log:
updo r1510711 (which commented out regression test) and try again now that maven release plugin
version was updated

Modified:
    ctakes/branches/ctakes-3.1.0/ctakes-regression-test/src/test/java/org/apache/ctakes/regression/test/RegressionPipelineTest.java

Modified: ctakes/branches/ctakes-3.1.0/ctakes-regression-test/src/test/java/org/apache/ctakes/regression/test/RegressionPipelineTest.java
URL: http://svn.apache.org/viewvc/ctakes/branches/ctakes-3.1.0/ctakes-regression-test/src/test/java/org/apache/ctakes/regression/test/RegressionPipelineTest.java?rev=1511813&r1=1511812&r2=1511813&view=diff
==============================================================================
--- ctakes/branches/ctakes-3.1.0/ctakes-regression-test/src/test/java/org/apache/ctakes/regression/test/RegressionPipelineTest.java
(original)
+++ ctakes/branches/ctakes-3.1.0/ctakes-regression-test/src/test/java/org/apache/ctakes/regression/test/RegressionPipelineTest.java
Thu Aug  8 14:45:47 2013
@@ -75,46 +75,46 @@ public class RegressionPipelineTest exte
 
 	@Test
 	public void testCPE() throws Exception {
-//		long started = System.currentTimeMillis();
-//		File[] listOfFiles = CPEDIR.listFiles();
-//		for (File file : listOfFiles) {
-//
-//			if (file.isFile()) {
-//				num_cpe++;
-//				File generated = new File("testdata/generatedoutput/"
-//						+ file.getName().substring(0,
-//								file.getName().indexOf(".")));
-//				File expected = new File("testdata/expectedoutput/"
-//						+ file.getName().substring(0,
-//								file.getName().indexOf(".")));
-//
-//				logger.info("Creating directory: " + generated);
-//
-//				Assert.assertTrue(
-//						"Unable to create " + generated.getAbsolutePath(),
-//						generated.exists() || generated.mkdirs());
-//
-//				// Run all of the CPE's in the Dir
-//				logger.info("Parsing CPE Descriptor:" + file.getName());
-//				CpeDescription cpeDesc = UIMAFramework.getXMLParser()
-//						.parseCpeDescription(new XMLInputSource(file));
-//				CollectionProcessingEngine mCPE = UIMAFramework
-//						.produceCollectionProcessingEngine(cpeDesc);
-//				// Create and register a Status Callback Listener
-//				mCPE.addStatusCallbackListener(new StatusCallbackListenerImpl(
-//						expected, generated));
-//				mCPE.process();
-//			}
-//		}
-//		// Wait until all of the CPE's have been completed
-//		// Before comparing.
-//		while (num_cpe > 0) {
-//			if (System.currentTimeMillis() - started >= MAX_TIMEOUT_MS) {
-//				Assert.assertEquals("Timed out:", "Regression CPE test timed out after "
-//						+ MAX_TIMEOUT_MS + " ms");
-//			}
-//			Thread.sleep(1000);
-//		}
+		long started = System.currentTimeMillis();
+		File[] listOfFiles = CPEDIR.listFiles();
+		for (File file : listOfFiles) {
+
+			if (file.isFile()) {
+				num_cpe++;
+				File generated = new File("testdata/generatedoutput/"
+						+ file.getName().substring(0,
+								file.getName().indexOf(".")));
+				File expected = new File("testdata/expectedoutput/"
+						+ file.getName().substring(0,
+								file.getName().indexOf(".")));
+
+				logger.info("Creating directory: " + generated);
+
+				Assert.assertTrue(
+						"Unable to create " + generated.getAbsolutePath(),
+						generated.exists() || generated.mkdirs());
+
+				// Run all of the CPE's in the Dir
+				logger.info("Parsing CPE Descriptor:" + file.getName());
+				CpeDescription cpeDesc = UIMAFramework.getXMLParser()
+						.parseCpeDescription(new XMLInputSource(file));
+				CollectionProcessingEngine mCPE = UIMAFramework
+						.produceCollectionProcessingEngine(cpeDesc);
+				// Create and register a Status Callback Listener
+				mCPE.addStatusCallbackListener(new StatusCallbackListenerImpl(
+						expected, generated));
+				mCPE.process();
+			}
+		}
+		// Wait until all of the CPE's have been completed
+		// Before comparing.
+		while (num_cpe > 0) {
+			if (System.currentTimeMillis() - started >= MAX_TIMEOUT_MS) {
+				Assert.assertEquals("Timed out:", "Regression CPE test timed out after "
+						+ MAX_TIMEOUT_MS + " ms");
+			}
+			Thread.sleep(1000);
+		}
 	}
 
 	public void compareXMLOutput(File expected_, File generated_)



Mime
View raw message