Forums

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

Can I use Spring Scanner 2 with AtlassianPluginsTestRunner?

Georg_Schneeberger
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 17, 2020

In our Team we develop Jira Plugins for our companies Jira server.

We explored using OSGi to share Components between two Plugins. For that we have to use the Atlassian Scanner 2, specified in the plugin-context.xml file.

The plugin-context.xml is the same as from https://bitbucket.org/atlassian/atlassian-spring-scanner/src/master/

That is:

<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:atlassian-scanner="http://www.atlassian.com/schema/atlassian-scanner/2"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
http://www.atlassian.com/schema/atlassian-scanner/2
http://www.atlassian.com/schema/atlassian-scanner/2/atlassian-scanner.xsd">
<atlassian-scanner:scan-indexes/>
</beans>

 

Unfortunately the WiredTest generated by the Atlassian SDK does not work, after I changed the plugin-context.xml and pom.xml to use Spring Scanner 2.

 

I get the surefire Error: 

java.lang.Throwable: unable to find runner for class: it.comatlasrunner.MyComponentWiredTest

 

The relevant part of the WiredTest is:

import com.atlassian.plugins.osgi.test.AtlassianPluginsTestRunner;
@RunWith(AtlassianPluginsTestRunner.class)
public class MyComponentWiredTest
{

 

1 answer

1 accepted

0 votes
Answer accepted
JP _AC Bielefeld Leader_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
April 18, 2020

Hi,

you might consider adding your question to:

https://community.developer.atlassian.com/

Best

JP

Suggest an answer

Log in or Sign up to answer