Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

How to Inject service in a test

Joel Suter March 21, 2018

I am trying to inject the "ApplicationPropertiesService" in my REST Tests. Usually I just inject the service in my constructor. But a test class has only one constructor with no parameters.

How can I use this service in my test class?

Thanks for the help.

1 answer

0 votes
Shannon S
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 21, 2018

Joel,

Can you confirm what product you're working with so I can make sure it's in the proper collection?

For your information, for development-related requests, we also have a Development resources site below, with documentation that may help you.

Regards,

Shannon

Joel Suter March 21, 2018

I work with Bitbucket.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events