]
Michael Anstis moved GUVNOR-3519 to DROOLS-2049:
------------------------------------------------
Project: Drools (was: Guvnor)
Key: DROOLS-2049 (was: GUVNOR-3519)
Workflow: GIT Pull Request workflow (was: classic default workflow)
Component/s: DSLs Editor
(was: DSL)
Affects Version/s: 7.3.0.Final
(was: 7.3.0.Final)
Remove private void checkMarshallingUsingDsl method
---------------------------------------------------
Key: DROOLS-2049
URL:
https://issues.jboss.org/browse/DROOLS-2049
Project: Drools
Issue Type: Task
Components: DSLs Editor
Affects Versions: 7.3.0.Final
Reporter: Jozef Marko
Assignee: Jozef Marko
The
[
testclass|https://github.com/kiegroup/drools/blob/master/drools-workbench...]
contains methods shown bellow. There is potential error in tests that expect
checkMarshallingUsingDsl will behave differently from checkMarshalling. This
checkMarshallingUsingDsl should be removed and tests which use it should be rewritten.
{code:java}
private void checkMarshalling(String expected,
RuleModel m) {
String drl = ruleModelPersistence.marshal(m);
assertNotNull(drl);
if (expected != null) {
assertEqualsIgnoreWhitespace(expected,
drl);
}
}
private void checkMarshallingUsingDsl(String expected,
RuleModel m) {
String drl = ruleModelPersistence.marshal(m);
assertNotNull(drl);
if (expected != null) {
assertEqualsIgnoreWhitespace(expected,
drl);
}
}
{code}