[incubator-kie-issues-1131] test migration from V7 to code generation-28 #3651
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Below are the tests with issues, commented the same for each test.
1. CompensationTest
It appears there are a few nodes that are missing outbound or inbound connections. The BPMN editor didn't indicate any problems, but it turns out that these nodes have no connection to the start node.
error:
java.lang.IllegalStateException: Process could not be validated ![Process 'Default Process' [InSubSubProcess]: Node 'Boundary Compensate 3' [_X-1] Event has no outgoing connection
Process 'Default Process' [InSubSubProcess]: Node 'Compensate Handler 3' [_X-2] Action has no incoming connection.,
Process 'Default Process' [InSubSubProcess]: Node 'Boundary Compensate 2' [_Y-1] Event has no outgoing connection,
Process 'Default Process' [InSubSubProcess]: Node 'Compensate Handler 2' [_Y-2] Action has no incoming connection.,
Process 'Default Process' [InSubSubProcess]: Node 'Compensate Handler 3' [_X-2] Has no connection to the start node.,
Process 'Default Process' [InSubSubProcess]: Node 'Compensate Handler 2' [_Y-2] Has no connection to the start node.]*
2. DataTest
testDataStore and testAssociation
When compiling the code, we cannot resolve method 'metaData' in 'Process'.
As I understand, the metaData() method is protected, and thus, it isn't directly accessible in the test class.
How to get process metadata from the process object(only then we can get the definition metadata).
testDefaultProcessVariableValue
CorrelationKeyModel does not have methods named getProcVar and getIntVar .
This may be due to acutal variables/methods being different in the CorrelationKeyModel.
guidance on above would be helpful.
Closes apache/incubator-kie-issues#1131.
Note: This pr contains tests with error, only for review purpose.