Hi Temporal team!
I was recently looking into building JUnit 5 extension for Temporal, similarly to the existing
TestWorkflowRule for JUnit 4.
One of the cool features JUnit 5 provides is parameter resolvers - with it should be possible to automatically inject preconfigured workflow stubs into test class and methods. That requires the extension to have the list of workflow interfaces, however, it gets workflow implementation classes as input, so I’m looking for a way to resolve the workflow implementation class into workflow interface(s) it implements.
Looking through the SDK code, it seems that
POJOWorkflowMethodMetadata encapsulate all the logic required to do that, but they are package private.
How stable are those classes’ APIs? Would you consider opening them up?