summaryrefslogtreecommitdiffstats
path: root/test/src
diff options
context:
space:
mode:
authorStefan Radomski <radomski@tk.informatik.tu-darmstadt.de>2013-03-22 17:31:52 (GMT)
committerStefan Radomski <radomski@tk.informatik.tu-darmstadt.de>2013-03-22 17:31:52 (GMT)
commita1dd0a039f6579793bf5272898609b29f19a49c2 (patch)
tree26f125497328ffadae0c777ea47457ea454b3759 /test/src
parente0a00d0f3c202d52444a1e73e4f362a3a064ca26 (diff)
downloaduscxml-a1dd0a039f6579793bf5272898609b29f19a49c2.zip
uscxml-a1dd0a039f6579793bf5272898609b29f19a49c2.tar.gz
uscxml-a1dd0a039f6579793bf5272898609b29f19a49c2.tar.bz2
Added php directors and fixed Interpreter::fromString
Diffstat (limited to 'test/src')
-rw-r--r--test/src/test-url.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/test/src/test-url.cpp b/test/src/test-url.cpp
index bbe4dbc..7b72250 100644
--- a/test/src/test-url.cpp
+++ b/test/src/test-url.cpp
@@ -1,5 +1,6 @@
#include "uscxml/URL.h"
#include "uscxml/Message.h"
+#include "uscxml/Interpreter.h"
#include "uscxml/server/HTTPServer.h"
#include <assert.h>
@@ -24,6 +25,12 @@ public:
int main(int argc, char** argv) {
{
+ Interpreter* interpreter = Interpreter::fromURI("https://raw.github.com/tklab-tud/uscxml/master/test/samples/uscxml/test-execution.scxml");
+ interpreter->interpret();
+ delete interpreter;
+ }
+
+ {
TestServlet* testServlet1 = new TestServlet(false);
TestServlet* testServlet2 = new TestServlet(false);
@@ -94,7 +101,7 @@ int main(int argc, char** argv) {
std::stringstream content;
content << url;
}
-
+
{
URL url("file:Document/Text.foo");
std::cout << url.asString() << std::endl;