Skip to content

Commit 1864efc

Browse files
Merge pull request #32 from joostverhoog/string-error-message
Microflow that returns a string should have that as the error message
2 parents fd2f7e8 + e595cdd commit 1864efc

7 files changed

Lines changed: 12 additions & 0 deletions

File tree

dist/UnitTesting_9.0.3.mpk

2.54 MB
Binary file not shown.

src/UnitTesting.mpr

0 Bytes
Binary file not shown.

src/javasource/unittesting/TestManager.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -366,6 +366,8 @@ else if (Core.getReturnType(mf).getType() != IDataType.DataTypeEnum.Boolean &&
366366

367367
if (res) {
368368
test.setResultMessage("Microflow completed successfully");
369+
} else if (resultObject instanceof String) {
370+
test.setResultMessage((String)resultObject);
369371
}
370372

371373
return res;
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
3+
}
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
import * as variables from "../../../theme/native/custom-variables";
2+
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
3+
}
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
@import '../../../theme/web/custom-variables';
2+

0 commit comments

Comments
 (0)