tkobayas commented on code in PR #7264:
URL: https://github.com/apache/incubator-kie/pull/7264#discussion_r4477894883
##########
drools-xml-support/src/test/java/org/drools/xml/support/XStreamXMLTest.java:
##########
@@ -88,6 +89,15 @@ public void
testUnMarshallStartProcessCmdWithNoOutIdentifier() {
assertThat(cmd.getProcessId()).isEqualTo("some-process-id");
}
+ @Test
+ public void testMarshallActivateRuleFlowGroupCommand() {
+ ActivateRuleFlowGroupCommand cmd = new
ActivateRuleFlowGroupCommand("foo-group");
+ String xmlString = xstream.toXML( cmd );
+ assertThat(xmlString).isEqualTo("<activate-ruleflow-group
name=\"foo-group\"/>");
+ ActivateRuleFlowGroupCommand cmd2 = (ActivateRuleFlowGroupCommand)
xstream.fromXML( xmlString );
+ assertThat(cmd2.getName()).isEqualTo(cmd.getName());
+ }
Review Comment:
Other test cases take the same approach. Leave it.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]