Source:
private void assertEmbeddedSubprocessExecutionSet(EmbeddedSubprocessExecutionSet executionSet, boolean isAsync, String onEntryActionScriptValue, String onEntryActionScriptLanguage, String onExitActionScriptValue, String onExitActionScriptLanguage, String slaDueDate) { assertThat(executionSet).isNotNull(); assertThat(executionSet.getIsAsync()).isNotNull(); assertThat(executionSet.getOnEntryAction()).isNotNull(); assertThat(executionSet.getOnExitAction()).isNotNull(); assertThat(executionSet.getOnEntryAction().getValue()).isNotNull(); assertThat(executionSet.getOnExitAction().getValue()).isNotNull(); List<ScriptTypeValue> onEntryScriptTypeValues = executionSet.getOnEntryAction().getValue().getValues(); List<ScriptTypeValue> onExitScriptTypeValues = executionSet.getOnExitAction().getValue().getValues(); assertThat(onEntryScriptTypeValues).isNotNull(); assertThat(onExitScriptTypeValues).isNotNull(); assertThat(onEntryScriptTypeValues.get(0)).isNotNull(); assertThat(onExitScriptTypeValues.get(0)).isNotNull(); assertThat(executionSet.getIsAsync()).isNotNull(); assertThat(executionSet.getIsAsync().getValue()).isEqualTo(isAsync); assertThat(executionSet.getSlaDueDate()).isNotNull(); assertThat(executionSet.getSlaDueDate().getValue()).isEqualTo(slaDueDate); assertThat(onEntryScriptTypeValues.get(0).getScript()).isEqualTo(onEntryActionScriptValue); assertThat(onEntryScriptTypeValues.get(0).getLanguage()).isEqualTo(onEntryActionScriptLanguage); assertThat(onExitScriptTypeValues.get(0).getScript()).isEqualTo(onExitActionScriptValue); assertThat(onExitScriptTypeValues.get(0).getLanguage()).isEqualTo(onExitActionScriptLanguage); }

Target:
private void assertEmbeddedSubprocessExecutionSet(EmbeddedSubprocessExecutionSet executionSet, boolean isAsync, String onEntryActionScriptValue, String onEntryActionScriptLanguage, String onExitActionScriptValue, String onExitActionScriptLanguage, String slaDueDate) { assertThat(executionSet).isNotNull(); assertThat(executionSet.getIsAsync()).isNotNull(); assertThat(executionSet.getSlaDueDate()).isNotNull(); assertThat(executionSet.getOnEntryAction()).isNotNull(); assertThat(executionSet.getOnExitAction()).isNotNull(); assertThat(executionSet.getOnEntryAction().getValue()).isNotNull(); assertThat(executionSet.getOnExitAction().getValue()).isNotNull(); List<ScriptTypeValue> onEntryScriptTypeValues = executionSet.getOnEntryAction().getValue().getValues(); List<ScriptTypeValue> onExitScriptTypeValues = executionSet.getOnExitAction().getValue().getValues(); assertThat(onEntryScriptTypeValues).isNotNull(); assertThat(onExitScriptTypeValues).isNotNull(); assertThat(onEntryScriptTypeValues.get(0)).isNotNull(); assertThat(onExitScriptTypeValues.get(0)).isNotNull(); assertThat(executionSet.getIsAsync().getValue()).isEqualTo(isAsync); assertThat(executionSet.getSlaDueDate().getValue()).isEqualTo(slaDueDate); assertThat(onEntryScriptTypeValues.get(0).getScript()).isEqualTo(onEntryActionScriptValue); assertThat(onEntryScriptTypeValues.get(0).getLanguage()).isEqualTo(onEntryActionScriptLanguage); assertThat(onExitScriptTypeValues.get(0).getScript()).isEqualTo(onExitActionScriptValue); assertThat(onExitScriptTypeValues.get(0).getLanguage()).isEqualTo(onExitActionScriptLanguage); }