<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Testing Atlassian Rest Plugins</title>
	<atom:link href="http://blog.sysbliss.com/development-process/testing-atlassian-rest-plugins.html/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.sysbliss.com/development-process/testing-atlassian-rest-plugins.html</link>
	<description>On the never-ending quest for systems bliss</description>
	<lastBuildDate>Wed, 10 Mar 2010 23:45:57 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Matt Doar</title>
		<link>http://blog.sysbliss.com/development-process/testing-atlassian-rest-plugins.html/comment-page-1#comment-903</link>
		<dc:creator>Matt Doar</dc:creator>
		<pubDate>Wed, 10 Mar 2010 23:45:57 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sysbliss.com/?p=66#comment-903</guid>
		<description>Ack. The display ate an important bit of into. After &quot;new GenericType&quot; there is a &lt;BuildResponse&gt; missing.</description>
		<content:encoded><![CDATA[<p>Ack. The display ate an important bit of into. After &#8220;new GenericType&#8221; there is a &lt;BuildResponse&gt; missing.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matt Doar</title>
		<link>http://blog.sysbliss.com/development-process/testing-atlassian-rest-plugins.html/comment-page-1#comment-902</link>
		<dc:creator>Matt Doar</dc:creator>
		<pubDate>Wed, 10 Mar 2010 23:25:33 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sysbliss.com/?p=66#comment-902</guid>
		<description>Using FuncTestCase as the parent class and annotations also worked for me.

~Matt

{code}
package it.com.consultingtoolsmiths.jira.plugins.example;

import com.consultingtoolsmiths.jira.plugins.example.BuildsResponse;
import com.atlassian.jira.functest.framework.FuncTestCase;
import org.junit.Before;
import org.junit.Test;
import com.sun.jersey.api.client.GenericType;
import com.sun.jersey.api.client.Client;
import com.sun.jersey.api.client.ClientResponse;
import com.sun.jersey.api.client.WebResource;

public class EnhancedLinksResourceTest extends FuncTestCase
{
    Client client;

    @Before
    public void setUpTest()
    {
        // Restore the test data
        administration.restoreData(&quot;example.xml&quot;);
        client = Client.create();
    }
    
    @Test
    public void testRestProjectsFound() {
        String dut = &quot;/rest/ct/1.0/builds/affected.json?issue=SW-1&quot;;
        final WebResource resource = client.resource(&quot;http://localhost:2990/jira&quot; + dut);
        
        final BuildsResponse response = resource.get(new GenericType() {});
        assertEquals(4, response.num_builds());
    }

}
{code}</description>
		<content:encoded><![CDATA[<p>Using FuncTestCase as the parent class and annotations also worked for me.</p>
<p>~Matt</p>
<p>{code}<br />
package it.com.consultingtoolsmiths.jira.plugins.example;</p>
<p>import com.consultingtoolsmiths.jira.plugins.example.BuildsResponse;<br />
import com.atlassian.jira.functest.framework.FuncTestCase;<br />
import org.junit.Before;<br />
import org.junit.Test;<br />
import com.sun.jersey.api.client.GenericType;<br />
import com.sun.jersey.api.client.Client;<br />
import com.sun.jersey.api.client.ClientResponse;<br />
import com.sun.jersey.api.client.WebResource;</p>
<p>public class EnhancedLinksResourceTest extends FuncTestCase<br />
{<br />
    Client client;</p>
<p>    @Before<br />
    public void setUpTest()<br />
    {<br />
        // Restore the test data<br />
        administration.restoreData(&#8220;example.xml&#8221;);<br />
        client = Client.create();<br />
    }</p>
<p>    @Test<br />
    public void testRestProjectsFound() {<br />
        String dut = &#8220;/rest/ct/1.0/builds/affected.json?issue=SW-1&#8243;;<br />
        final WebResource resource = client.resource(&#8220;http://localhost:2990/jira&#8221; + dut);</p>
<p>        final BuildsResponse response = resource.get(new GenericType() {});<br />
        assertEquals(4, response.num_builds());<br />
    }</p>
<p>}<br />
{code}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sdt</title>
		<link>http://blog.sysbliss.com/development-process/testing-atlassian-rest-plugins.html/comment-page-1#comment-762</link>
		<dc:creator>sdt</dc:creator>
		<pubDate>Wed, 03 Feb 2010 21:45:38 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sysbliss.com/?p=66#comment-762</guid>
		<description>This is a great tutorial, and the first good tutorial I&#039;ve seen related to JIRA 4 plugin development! Kudos to you!</description>
		<content:encoded><![CDATA[<p>This is a great tutorial, and the first good tutorial I&#8217;ve seen related to JIRA 4 plugin development! Kudos to you!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Erik Husby</title>
		<link>http://blog.sysbliss.com/development-process/testing-atlassian-rest-plugins.html/comment-page-1#comment-659</link>
		<dc:creator>Erik Husby</dc:creator>
		<pubDate>Thu, 21 Jan 2010 16:44:06 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sysbliss.com/?p=66#comment-659</guid>
		<description>Two more things.

1. Had to change the URL used in ProjectRestTest.java to http://localhost:2990/jira/rest/projectfinder/1.0/projects.xml instead of http://localhost:2990/jira/rest/projectversions/1.0/projects.xml

2. atlas-integration-test is running the test twice! Is that because I am using JUnit instead of TestNG?</description>
		<content:encoded><![CDATA[<p>Two more things.</p>
<p>1. Had to change the URL used in ProjectRestTest.java to <a href="http://localhost:2990/jira/rest/projectfinder/1.0/projects.xml" rel="nofollow">http://localhost:2990/jira/rest/projectfinder/1.0/projects.xml</a> instead of <a href="http://localhost:2990/jira/rest/projectversions/1.0/projects.xml" rel="nofollow">http://localhost:2990/jira/rest/projectversions/1.0/projects.xml</a></p>
<p>2. atlas-integration-test is running the test twice! Is that because I am using JUnit instead of TestNG?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Erik Husby</title>
		<link>http://blog.sysbliss.com/development-process/testing-atlassian-rest-plugins.html/comment-page-1#comment-651</link>
		<dc:creator>Erik Husby</dc:creator>
		<pubDate>Wed, 20 Jan 2010 21:07:28 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sysbliss.com/?p=66#comment-651</guid>
		<description>Thanks for the quick response. Problems resolved.</description>
		<content:encoded><![CDATA[<p>Thanks for the quick response. Problems resolved.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jdoklovic</title>
		<link>http://blog.sysbliss.com/development-process/testing-atlassian-rest-plugins.html/comment-page-1#comment-649</link>
		<dc:creator>jdoklovic</dc:creator>
		<pubDate>Wed, 20 Jan 2010 20:47:11 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sysbliss.com/?p=66#comment-649</guid>
		<description>Sorry... I started out using HttpClient, but then switched to using the jersey testing utilities.
I added the dependency list in the beginning of this post.

The javax.ws.rs.core.GenericEntity is the proper class as well.</description>
		<content:encoded><![CDATA[<p>Sorry&#8230; I started out using HttpClient, but then switched to using the jersey testing utilities.<br />
I added the dependency list in the beginning of this post.</p>
<p>The javax.ws.rs.core.GenericEntity is the proper class as well.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Erik Husby</title>
		<link>http://blog.sysbliss.com/development-process/testing-atlassian-rest-plugins.html/comment-page-1#comment-648</link>
		<dc:creator>Erik Husby</dc:creator>
		<pubDate>Wed, 20 Jan 2010 20:30:12 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sysbliss.com/?p=66#comment-648</guid>
		<description>There are some disconnects between the code and import statements.

In ProjectRestTest, the code references Client, WebResource, and GenericType but there are no import statements for them. The imports list several classes from org.apache.commons.httpclient which are not mentioned in the code. Replacing Client with HttpClient from commons-httpclient 3.1 fails because there are not create or resource methods there.

In several of the other sources, there was a GenericEnity that had no import statement. Intellij suggested javax.ws.rs.core.GenericEntity which appears to work.

What is the solution to the import problems?</description>
		<content:encoded><![CDATA[<p>There are some disconnects between the code and import statements.</p>
<p>In ProjectRestTest, the code references Client, WebResource, and GenericType but there are no import statements for them. The imports list several classes from org.apache.commons.httpclient which are not mentioned in the code. Replacing Client with HttpClient from commons-httpclient 3.1 fails because there are not create or resource methods there.</p>
<p>In several of the other sources, there was a GenericEnity that had no import statement. Intellij suggested javax.ws.rs.core.GenericEntity which appears to work.</p>
<p>What is the solution to the import problems?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Enzo</title>
		<link>http://blog.sysbliss.com/development-process/testing-atlassian-rest-plugins.html/comment-page-1#comment-619</link>
		<dc:creator>Enzo</dc:creator>
		<pubDate>Mon, 21 Dec 2009 04:26:51 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sysbliss.com/?p=66#comment-619</guid>
		<description>Hi, may you help me resolve this problem? I got message after run atlas-integration-test

[INFO] -----------------------------------------------
[ERROR] BUILD ERROR
[INFO] -----------------------------------------------
[INFO] Unable to execute mojo</description>
		<content:encoded><![CDATA[<p>Hi, may you help me resolve this problem? I got message after run atlas-integration-test</p>
<p>[INFO] &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
[ERROR] BUILD ERROR<br />
[INFO] &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
[INFO] Unable to execute mojo</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sarah Maddox</title>
		<link>http://blog.sysbliss.com/development-process/testing-atlassian-rest-plugins.html/comment-page-1#comment-553</link>
		<dc:creator>Sarah Maddox</dc:creator>
		<pubDate>Mon, 02 Nov 2009 03:26:48 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sysbliss.com/?p=66#comment-553</guid>
		<description>Great stuff! Thank you Jonathan, and thank you Matt for pointing out this page. I&#039;ve added a link on the documentation page itself now too.
Cheers
Sarah</description>
		<content:encoded><![CDATA[<p>Great stuff! Thank you Jonathan, and thank you Matt for pointing out this page. I&#8217;ve added a link on the documentation page itself now too.<br />
Cheers<br />
Sarah</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Matt Doar</title>
		<link>http://blog.sysbliss.com/development-process/testing-atlassian-rest-plugins.html/comment-page-1#comment-547</link>
		<dc:creator>Matt Doar</dc:creator>
		<pubDate>Fri, 30 Oct 2009 22:31:54 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sysbliss.com/?p=66#comment-547</guid>
		<description>This is a great resource, thanks. I&#039;ve added a link to it from Sarah Maddox&#039;s starter tutorial on Rest Plugins 
at http://confluence.atlassian.com/display/DEVNET/Plugin+Tutorial+-+Writing+REST+services

~Matt</description>
		<content:encoded><![CDATA[<p>This is a great resource, thanks. I&#8217;ve added a link to it from Sarah Maddox&#8217;s starter tutorial on Rest Plugins<br />
at <a href="http://confluence.atlassian.com/display/DEVNET/Plugin+Tutorial+-+Writing+REST+services" rel="nofollow">http://confluence.atlassian.com/display/DEVNET/Plugin+Tutorial+-+Writing+REST+services</a></p>
<p>~Matt</p>
]]></content:encoded>
	</item>
</channel>
</rss>
