I'm trying to run integration test
my test class is
@RunWith(AtlassianPluginsTestRunner.class)
public class MyClassTestIT extends BaseFuncTest {
private ApplicationPropertiesService applicationProperties;
public MyClassTestIT (ApplicationPropertiesService applicationProperties) {
this.applicationProperties = applicationProperties;
}
@techoneway
public void test() throws IOException, ServletException {
System.out.println(applicationProperties.getDisplayName());
Assert.assertEquals("names do not match!", "myComponent:" + applicationProperties.getDisplayName());
}
}
I have atlassian-plugin.xml under resource folder which is importing required key as well
<component-import key="applicationProperties" interface="com.atlassian.sal.api.ApplicationProperties"/>
but getting below error.
java.lang.Exception: No tests found in class
at com.atlassian.plugins.osgi.test.AtlassianPluginsTestRunner.runViaRestCall(AtlassianPluginsTestRunner.java:125)
at com.atlassian.plugins.osgi.test.AtlassianPluginsTestRunner.run(AtlassianPluginsTestRunner.java:75)
at org.junit.runner.JUnitCore.run(JUnitCore.java:160)
at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:68)
at com.intellij.rt.execution.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:47)
at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:242)
at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:70)