# Writing Integration Test for bitbucket plugin development

**URL:** <https://community.developer.atlassian.com/t/writing-integration-test-for-bitbucket-plugin-development/27170>\
**Category:** Bitbucket Development\
**Tags:** integration-testing, bitbucket-api\
**Created:** [February 21, 2019, 2:21pm UTC](https://community.developer.atlassian.com/t/writing-integration-test-for-bitbucket-plugin-development/27170 "2019-02-21T14:21:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![smartarix](https://sea1.discourse-cdn.com/atlassiandeveloper/user_avatar/community.developer.atlassian.com/smartarix/32/37830_2.png) [@smartarix](https://community.developer.atlassian.com/u/smartarix)\
**Post date:** [February 21, 2019, 2:21pm UTC](https://community.developer.atlassian.com/t/writing-integration-test-for-bitbucket-plugin-development/27170/1 "2019-02-21T14:21:05Z")

</div>

Hi,  
I’m developing a plugin for bitbucket for which I wanted to write integration test where I want to inject plugin component like ApplicationProperties, SoyTemplateRenderer etc.  
My test class looks like

@RunWith(AtlassianPluginsTestRunner.class)  
public class MyServletTestIT extends BaseFuncTest {

private ApplicationPropertiesService applicationProperties;  
public MyServletTestIT(ApplicationPropertiesService applicationProperties) {  
this.applicationProperties = applicationProperties;

```
}
@Test
public void test() {
    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

```auto
<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)

I’m using below version

```auto
 <bitbucket.version>5.11.3</bitbucket.version>
        <bitbucket.data.version>${bitbucket.version}</bitbucket.data.version>
        <amps.version>6.1.0</amps.version>
        <ao.version>0.19.7</ao.version>
        <plugin.testrunner.version>1.2.3</plugin.testrunner.version>

```
