<?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>Mon, 07 Jun 2010 11:13:58 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: dat94ija</title>
		<link>http://blog.sysbliss.com/development-process/testing-atlassian-rest-plugins.html/comment-page-1#comment-917</link>
		<dc:creator>dat94ija</dc:creator>
		<pubDate>Fri, 02 Apr 2010 06:34:11 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sysbliss.com/?p=66#comment-917</guid>
		<description>The compiling error was beacuse of error in my Java classes. I fixed it.</description>
		<content:encoded><![CDATA[<p>The compiling error was beacuse of error in my Java classes. I fixed it.</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-915</link>
		<dc:creator>jdoklovic</dc:creator>
		<pubDate>Thu, 01 Apr 2010 20:33:19 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sysbliss.com/?p=66#comment-915</guid>
		<description>can you post the rest of the output?  What&#039;s it failing to compile?</description>
		<content:encoded><![CDATA[<p>can you post the rest of the output?  What&#8217;s it failing to compile?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dat94ija</title>
		<link>http://blog.sysbliss.com/development-process/testing-atlassian-rest-plugins.html/comment-page-1#comment-914</link>
		<dc:creator>dat94ija</dc:creator>
		<pubDate>Thu, 01 Apr 2010 20:10:37 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sysbliss.com/?p=66#comment-914</guid>
		<description>Hello, I tried to follow up the structions to test this plugin but I am
getting an error when I run atlas-run, 
 
Downloading: 
https://m2proxy.atlassian.com/repository/public/com/sun/grizzly/gri
zzly-portunif/1.9.8/grizzly-portunif-1.9.8.jar
16K downloaded  (grizzly-portunif-1.9.8.jar)
Downloading: https://m2proxy.atlassian.com/repository/public/com/sun/grizzly/gri
zzly-http-servlet/1.9.8/grizzly-http-servlet-1.9.8.jar
43K downloaded  (grizzly-http-servlet-1.9.8.jar)
18329K downloaded  (glassfish-embedded-all-3.0-Prelude-Embedded-b14.jar)
[INFO] [dependency:copy-dependencies]
[INFO] [resources:resources]
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources,
i.e. build is platform dependent!
[INFO] Copying 1 resource
[INFO] [jira:filter-plugin-descriptor]
[INFO] [resources:copy-resources {execution: virtual-execution}]
[INFO] Using &#039;UTF-8&#039; encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO] [compiler:compile]
[INFO] Compiling 4 source files to C:\development\plugins\jira-projects-rest\tar
get\classes
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Compilation failure</description>
		<content:encoded><![CDATA[<p>Hello, I tried to follow up the structions to test this plugin but I am<br />
getting an error when I run atlas-run, </p>
<p>Downloading:<br />
<a href="https://m2proxy.atlassian.com/repository/public/com/sun/grizzly/gri" rel="nofollow">https://m2proxy.atlassian.com/repository/public/com/sun/grizzly/gri</a><br />
zzly-portunif/1.9.8/grizzly-portunif-1.9.8.jar<br />
16K downloaded  (grizzly-portunif-1.9.8.jar)<br />
Downloading: <a href="https://m2proxy.atlassian.com/repository/public/com/sun/grizzly/gri" rel="nofollow">https://m2proxy.atlassian.com/repository/public/com/sun/grizzly/gri</a><br />
zzly-http-servlet/1.9.8/grizzly-http-servlet-1.9.8.jar<br />
43K downloaded  (grizzly-http-servlet-1.9.8.jar)<br />
18329K downloaded  (glassfish-embedded-all-3.0-Prelude-Embedded-b14.jar)<br />
[INFO] [dependency:copy-dependencies]<br />
[INFO] [resources:resources]<br />
[WARNING] Using platform encoding (Cp1252 actually) to copy filtered resources,<br />
i.e. build is platform dependent!<br />
[INFO] Copying 1 resource<br />
[INFO] [jira:filter-plugin-descriptor]<br />
[INFO] [resources:copy-resources {execution: virtual-execution}]<br />
[INFO] Using &#8216;UTF-8&#8242; encoding to copy filtered resources.<br />
[INFO] Copying 1 resource<br />
[INFO] [compiler:compile]<br />
[INFO] Compiling 4 source files to C:\development\plugins\jira-projects-rest\tar<br />
get\classes<br />
[INFO] &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
[ERROR] BUILD FAILURE<br />
[INFO] &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
[INFO] Compilation failure</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-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>
</channel>
</rss>
