You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ode.apache.org by mr...@apache.org on 2007/12/06 02:10:58 UTC
svn commit: r601592 - in /ode/sandbox/simpel/src/test:
java/org/apache/ode/simpel/SimPELCompilerTest.java
resources/compile-tests-ok.simpel
Author: mriou
Date: Wed Dec 5 17:10:57 2007
New Revision: 601592
URL: http://svn.apache.org/viewvc?rev=601592&view=rev
Log:
Scope, alarm, event, compensation and compensate.
Modified:
ode/sandbox/simpel/src/test/java/org/apache/ode/simpel/SimPELCompilerTest.java
ode/sandbox/simpel/src/test/resources/compile-tests-ok.simpel
Modified: ode/sandbox/simpel/src/test/java/org/apache/ode/simpel/SimPELCompilerTest.java
URL: http://svn.apache.org/viewvc/ode/sandbox/simpel/src/test/java/org/apache/ode/simpel/SimPELCompilerTest.java?rev=601592&r1=601591&r2=601592&view=diff
==============================================================================
--- ode/sandbox/simpel/src/test/java/org/apache/ode/simpel/SimPELCompilerTest.java (original)
+++ ode/sandbox/simpel/src/test/java/org/apache/ode/simpel/SimPELCompilerTest.java Wed Dec 5 17:10:57 2007
@@ -22,6 +22,7 @@
BufferedReader reader = new BufferedReader(new FileReader(
getClass().getClassLoader().getResource("compile-tests-ok.simpel").getFile()));
+ int testCount = 0;
String line;
StringBuffer processBody = new StringBuffer();
TestErrorListener l = new TestErrorListener();
@@ -44,6 +45,7 @@
allErrors.append("Test case ").append(testCaseName).append(" failed!!\n");
allErrors.append(l.messages.toString()).append("\n");
}
+ testCount++;
// Preparing for next test case
testCaseName = reader.readLine().trim().substring(2);
@@ -62,6 +64,7 @@
System.out.println("Error compiling " + testCaseName);
e.printStackTrace();
}
+ testCount++;
if (l.messages.toString().length() > 0) {
// Shit happened
allErrors.append("Test case ").append(testCaseName).append(" failed!!");
@@ -72,6 +75,8 @@
System.out.println("Some test processes failed to compile:\n");
System.out.println(allErrors.toString());
fail("There were failures.");
+ } else {
+ System.out.println("Compiled " + testCount + " processes correctly.");
}
}
Modified: ode/sandbox/simpel/src/test/resources/compile-tests-ok.simpel
URL: http://svn.apache.org/viewvc/ode/sandbox/simpel/src/test/resources/compile-tests-ok.simpel?rev=601592&r1=601591&r2=601592&view=diff
==============================================================================
--- ode/sandbox/simpel/src/test/resources/compile-tests-ok.simpel (original)
+++ ode/sandbox/simpel/src/test/resources/compile-tests-ok.simpel Wed Dec 5 17:10:57 2007
@@ -62,7 +62,7 @@
# Scope with everything
#
-process ScopeAlarm {
+process ScopeAll {
msg_in = receive(my_pl, start_op)
scope {
wait([PT60S])