Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Confluence Blueprint - Unit Test BlueprintContext

Mousset Michael June 15, 2018

Hello, I'm trying to create a COnfluence Blueprint, which is not such an easy task when looking at the atlassian documentation :(

 

Anyway, I succeeded in doin what I want so far, and Im now trying to test the differents Java classes I wrote.

I want to test the ContextProvider I wrote which extend 

AbstractBlueprintContextProvider

 

I can instantiate my class and all of its dependencies in my test so far, but How could trigger the updateBlueprintContext method to be fired?

 

Hope someone can help me understand,

 

Regards

 

michael

 

1 answer

1 accepted

0 votes
Answer accepted
Mousset Michael June 15, 2018

Ok will answer myself,

 

After initializaing your context object :

contextProvider = new ContextProvider();

contextProvider.getContextMap(contextMap)

Calling getContextMap will then call the updateBlueprintContext function of your ContextProvider.

 

In case anyone needs it.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events