Create Case and Resolves Case in PegaUnit test case

I need to actually create a Case as part of PegaUnit Test Case “Setup”.

Then I will have my Rule-Under-Test, an Activity, finds the Case and Resolve it

I need my Assertion to check the status of Resolved case is what I would expect it to be based on how Activity resolved the Case.

So I thought I could use “Create Work Object” as part of “Additional Clipboard Data”. However, I find it very confusing since it also asks for a Page to create the Work object on.

Regardless, I don’t want to create anything just in memory here. I’m fine creating the Case literally, then run my Activity and check the results.

Appreciate any pointers.

@PEGAFREAK

Solved by not “cleaning up” the Case, and loading the Work Object

Hi @PEGAFREAK!

Thanks for sharing your solution! I’ve marked it as such!