Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
开发团队
Flowable Engine
提交
3ab0bbda
F
Flowable Engine
项目概览
开发团队
/
Flowable Engine
通知
9
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
F
Flowable Engine
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
3ab0bbda
编写于
12月 18, 2015
作者:
J
Joram Barrez
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Porting
https://github.com/Activiti/Activiti/commit/74b57bfb203ff52d3a00c4b4e070aedf6d3ad66d
to v6
上级
7204ade3
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
19 addition
and
19 deletion
+19
-19
modules/activiti-bpmn-converter/src/test/java/org/activiti/editor/language/xml/MessageConverterTest.java
...rg/activiti/editor/language/xml/MessageConverterTest.java
+13
-13
modules/activiti-bpmn-converter/src/test/resources/message.bpmn
...s/activiti-bpmn-converter/src/test/resources/message.bpmn
+6
-6
未找到文件。
modules/activiti-bpmn-converter/src/test/java/org/activiti/editor/language/xml/MessageConverterTest.java
浏览文件 @
3ab0bbda
...
...
@@ -8,35 +8,35 @@ import org.activiti.bpmn.model.Message;
import
org.junit.Test
;
public
class
MessageConverterTest
extends
AbstractConverterTest
{
@Test
public
void
connvertXMLToModel
()
throws
Exception
{
BpmnModel
bpmnModel
=
readXMLFile
();
validateModel
(
bpmnModel
);
}
@Test
public
void
convertModelToXML
()
throws
Exception
{
BpmnModel
bpmnModel
=
readXMLFile
();
BpmnModel
parsedModel
=
exportAndReadXMLFile
(
bpmnModel
);
validateModel
(
parsedModel
);
}
private
void
validateModel
(
BpmnModel
model
)
{
Message
message
=
model
.
getMessage
(
"writeReport
Id
"
);
Message
message
=
model
.
getMessage
(
"writeReport"
);
assertNotNull
(
message
);
assertEquals
(
"writeReportItem"
,
message
.
getItemRef
());
assertEquals
(
"
writeReportName
"
,
message
.
getName
());
assertEquals
(
"writeReport
Id
"
,
message
.
getId
());
assertEquals
(
"
Examples:
writeReportItem"
,
message
.
getItemRef
());
assertEquals
(
"
newWriteReport
"
,
message
.
getName
());
assertEquals
(
"writeReport"
,
message
.
getId
());
Message
message2
=
model
.
getMessage
(
"writeReport2
Id
"
);
Message
message2
=
model
.
getMessage
(
"writeReport2"
);
assertNotNull
(
message2
);
assertEquals
(
"writeReportItem2"
,
message2
.
getItemRef
());
assertEquals
(
"
writeReport2Name
"
,
message2
.
getName
());
assertEquals
(
"writeReport2
Id
"
,
message2
.
getId
());
assertEquals
(
"
http://foo.bar.com/Examples:
writeReportItem2"
,
message2
.
getItemRef
());
assertEquals
(
"
newWriteReport2
"
,
message2
.
getName
());
assertEquals
(
"writeReport2"
,
message2
.
getId
());
}
protected
String
getResource
()
{
return
"message.bpmn"
;
return
"message.bpmn"
;
}
}
\ No newline at end of file
modules/activiti-bpmn-converter/src/test/resources/message.bpmn
浏览文件 @
3ab0bbda
...
...
@@ -7,16 +7,16 @@
xmlns:tns2=
"http://foo.bar.com/Examples"
xmlns:xsi=
"http://www.w3.org/2001/XMLSchema-instance"
>
<message
id=
"writeReportId"
name=
"writeReportName"
itemRef=
"
writeReportItem"
/>
<message
id=
"writeReport2
Id"
name=
"writeReport2Name"
itemRef=
"
writeReportItem2"
/>
<process
id=
"process01"
isExecutable=
"true"
>
<message
id=
"writeReport"
name=
"newWriteReport"
itemRef=
"tns:
writeReportItem"
/>
<message
id=
"writeReport2
"
name=
"newWriteReport2"
itemRef=
"tns2:
writeReportItem2"
/>
<process
id=
"process01"
isExecutable=
"true"
>
<startEvent
id=
"theStart"
>
<messageEventDefinition
messageRef=
"
writeReportId
"
/>
<messageEventDefinition
messageRef=
"
tns:writeReport
"
/>
</startEvent>
<sequenceFlow
id=
"flow1"
sourceRef=
"theStart"
targetRef=
"theEnd"
/>
</process>
</process>
</definitions>
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录