Skip to content

Commit

Permalink
test: surface bug by changing id
Browse files Browse the repository at this point in the history
This test case was not surfacing a bug due to usage of a specific
user-defined string as the decisionRequirementsId. This meant that the
correct data did not trigger the false positive where it would be
attempted to be moved.
  • Loading branch information
korthout committed Feb 16, 2024
1 parent a6bf0e8 commit 7bdbf0f
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -272,7 +272,7 @@ void shouldMovePiKeyByProcDefKeyToCorrectColumnFamily() {
@Test
void shouldIgnoreProcessInstanceKeyByDefinitionKeyEntries() {
// given
decisionRequirementsId.wrapString("decisionRequirements");
decisionRequirementsId.wrapString("drg");
decisionRequirementsVersion.wrapInt(1);
decisionRequirementsKey.wrapLong(543);
correctDecisionRequirementsKeyColumnFamily.insert(
Expand All @@ -283,7 +283,7 @@ void shouldIgnoreProcessInstanceKeyByDefinitionKeyEntries() {
wrongPiKeyByProcDefKeyColumnFamily.insert(
processInstanceKeyByProcessDefinitionKey, DbNil.INSTANCE);

decisionRequirementsId.wrapString("decisionRequirements2");
decisionRequirementsId.wrapString("drg2");
decisionRequirementsVersion.wrapInt(2);
decisionRequirementsKey.wrapLong(987);
correctDecisionRequirementsKeyColumnFamily.insert(
Expand Down

0 comments on commit 7bdbf0f

Please sign in to comment.