summaryrefslogtreecommitdiffstats
path: root/embedding/java/src/org/uscxml/tests
diff options
context:
space:
mode:
authorStefan Radomski <radomski@tk.informatik.tu-darmstadt.de>2014-07-03 01:10:03 (GMT)
committerStefan Radomski <radomski@tk.informatik.tu-darmstadt.de>2014-07-03 01:10:03 (GMT)
commitb542369263782dc8b85893e218119ed070efa7b3 (patch)
tree0a18012a0af991755ceab98a457b46b79c14129f /embedding/java/src/org/uscxml/tests
parent193a01614dc3290eec51745a91be65c166c3763b (diff)
downloaduscxml-b542369263782dc8b85893e218119ed070efa7b3.zip
uscxml-b542369263782dc8b85893e218119ed070efa7b3.tar.gz
uscxml-b542369263782dc8b85893e218119ed070efa7b3.tar.bz2
Got ready for cmake3 and some minor fixes
Diffstat (limited to 'embedding/java/src/org/uscxml/tests')
-rw-r--r--embedding/java/src/org/uscxml/tests/execContent/TestCustomExecContent.java4
-rw-r--r--embedding/java/src/org/uscxml/tests/invoker/TestCustomInvoker.java5
-rw-r--r--embedding/java/src/org/uscxml/tests/ioprocessor/TestCustomIOProc.java3
3 files changed, 9 insertions, 3 deletions
diff --git a/embedding/java/src/org/uscxml/tests/execContent/TestCustomExecContent.java b/embedding/java/src/org/uscxml/tests/execContent/TestCustomExecContent.java
index 7a97ab4..805e6f7 100644
--- a/embedding/java/src/org/uscxml/tests/execContent/TestCustomExecContent.java
+++ b/embedding/java/src/org/uscxml/tests/execContent/TestCustomExecContent.java
@@ -42,7 +42,9 @@ public class TestCustomExecContent extends ExecutableContent {
@Override
public ExecutableContent create(Interpreter interpreter) {
- return new TestCustomExecContent();
+ TestCustomExecContent execContent = new TestCustomExecContent();
+ execContent.swigReleaseOwnership();
+ return execContent;
}
/**
diff --git a/embedding/java/src/org/uscxml/tests/invoker/TestCustomInvoker.java b/embedding/java/src/org/uscxml/tests/invoker/TestCustomInvoker.java
index 25420ed..ecbff9b 100644
--- a/embedding/java/src/org/uscxml/tests/invoker/TestCustomInvoker.java
+++ b/embedding/java/src/org/uscxml/tests/invoker/TestCustomInvoker.java
@@ -47,7 +47,9 @@ public class TestCustomInvoker extends Invoker {
@Override
public Invoker create(Interpreter interpreter) {
- return new TestCustomInvoker();
+ TestCustomInvoker invoker = new TestCustomInvoker();
+ invoker.swigReleaseOwnership();
+ return invoker;
}
/**
@@ -73,6 +75,7 @@ public class TestCustomInvoker extends Invoker {
" </state>" +
" <state id=\"s12\">" +
" <onentry>" +
+ " <log label=\"label\" expr=\"foo\" />" +
" <send target=\"#_javainvoker2\" event=\"foo\" />" +
" </onentry>" +
" <transition event=\"received2\" target=\"done\" />" +
diff --git a/embedding/java/src/org/uscxml/tests/ioprocessor/TestCustomIOProc.java b/embedding/java/src/org/uscxml/tests/ioprocessor/TestCustomIOProc.java
index 277c505..8a72abe 100644
--- a/embedding/java/src/org/uscxml/tests/ioprocessor/TestCustomIOProc.java
+++ b/embedding/java/src/org/uscxml/tests/ioprocessor/TestCustomIOProc.java
@@ -89,6 +89,7 @@ public class TestCustomIOProc extends IOProcessor {
public IOProcessor create(Interpreter interpreter) {
TestCustomIOProc ioProc = new TestCustomIOProc();
ioProc.interpreter = interpreter;
+ ioProc.swigReleaseOwnership();
return ioProc;
}
@@ -102,7 +103,7 @@ public class TestCustomIOProc extends IOProcessor {
TestCustomIOProc ioproc = new TestCustomIOProc();
// just register prototype at global factory
Factory.getInstance().registerIOProcessor(ioproc);
-
+
String xml =
"<scxml>" +
" <state id=\"s1\">" +