Commits

Pawel Niewiadomski [Atlassian] committed e19487c Merge

Merged in alofkrantz/jira-testkit-example (pull request #1)

Updated to use JIRA 6.0-rc1, AMPS 4.2.0, TestKit 6.0.26 and JUnit4

Comments (0)

Files changed (2)

     </build>
 
     <properties>
-        <jira.version>5.0.2</jira.version>
-        <amps.version>3.10.1</amps.version>
-		<testkit.version>5.0-m07</testkit.version>
+        <jira.version>6.0-rc1</jira.version>
+        <amps.version>4.2.0</amps.version>
+        <testkit.version>6.0.26</testkit.version>
     </properties>
-
 </project>

src/test/java/it/MyPluginTest.java

 package it;
 
-import com.atlassian.jira.functest.framework.FuncTestCase;
 import com.atlassian.jira.testkit.client.Backdoor;
 import com.atlassian.jira.testkit.client.util.TestKitLocalEnvironmentData;
 import com.atlassian.jira.testkit.client.util.TimeBombLicence;
 
-public class MyPluginTest extends FuncTestCase
-{
-	@Override
-	protected void setUpTest() {
-		super.setUpTest();
+import org.junit.Before;
+import org.junit.Test;
 
+public class MyPluginTest
+{
+	@Before
+	public void setUp() {
 		Backdoor testKit = new Backdoor(new TestKitLocalEnvironmentData());
 		testKit.restoreBlankInstance(TimeBombLicence.LICENCE_FOR_TESTING);
 		testKit.usersAndGroups().addUser("test-user");
 		testKit.subtask().enable();
 	}
 
-    public void testIntegration()
+    @Test
+    public void shouldDoSomething()
     {
 		// Put your test logic here
     }
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.