<?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: Interceptors in JUnit</title>
	<atom:link href="http://www.threeriversinstitute.org/blog/?feed=rss2&#038;p=155" rel="self" type="application/rss+xml" />
	<link>http://www.threeriversinstitute.org/blog/?p=155</link>
	<description>Thoughts on programming</description>
	<lastBuildDate>Thu, 29 Jul 2010 21:19:43 -0400</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: Testing the testers: code samples from a TDD framework comparison &#124; Xebia Blog</title>
		<link>http://www.threeriversinstitute.org/blog/?p=155&#038;cpage=1#comment-1561</link>
		<dc:creator>Testing the testers: code samples from a TDD framework comparison &#124; Xebia Blog</dc:creator>
		<pubDate>Fri, 27 Nov 2009 01:04:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.threeriversinstitute.org/blog/?p=155#comment-1561</guid>
		<description>[...] 4.7 of JUnit introduced rules, sort-of around aspects that are called before and after the execution of a test. Some of the [...]</description>
		<content:encoded><![CDATA[<p>[...] 4.7 of JUnit introduced rules, sort-of around aspects that are called before and after the execution of a test. Some of the [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Neale</title>
		<link>http://www.threeriversinstitute.org/blog/?p=155&#038;cpage=1#comment-1302</link>
		<dc:creator>Neale</dc:creator>
		<pubDate>Thu, 03 Sep 2009 13:48:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.threeriversinstitute.org/blog/?p=155#comment-1302</guid>
		<description>I&#039;m wondering if the example you give in the release notes helps solve the downside of @Test(expect=SomeException.class), which can pass if the expected exception is thrown from the wrong place.


Would the following be valid:
		@Rule
		public ExpectedException thrown= ExpectedException.none();

		@Test
		public void throwsNullPointerExceptionWithMessage() {
			maybeThrowNPE(); // should fail if this does throw NPE..?
			thrown.expect(NullPointerException.class);
                        throw new NullPointerException();
		}</description>
		<content:encoded><![CDATA[<p>I&#8217;m wondering if the example you give in the release notes helps solve the downside of @Test(expect=SomeException.class), which can pass if the expected exception is thrown from the wrong place.</p>
<p>Would the following be valid:<br />
		@Rule<br />
		public ExpectedException thrown= ExpectedException.none();</p>
<p>		@Test<br />
		public void throwsNullPointerExceptionWithMessage() {<br />
			maybeThrowNPE(); // should fail if this does throw NPE..?<br />
			thrown.expect(NullPointerException.class);<br />
                        throw new NullPointerException();<br />
		}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Functional HTTP testing revisited using JUnit 4.7 Interceptors &#171; Alistair Israel</title>
		<link>http://www.threeriversinstitute.org/blog/?p=155&#038;cpage=1#comment-1301</link>
		<dc:creator>Functional HTTP testing revisited using JUnit 4.7 Interceptors &#171; Alistair Israel</dc:creator>
		<pubDate>Thu, 03 Sep 2009 03:07:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.threeriversinstitute.org/blog/?p=155#comment-1301</guid>
		<description>[...] Interceptors in JUnit 2 JUnit 4.7: Interceptors: expected exceptions     Posted by Alistair Filed in Uncategorized   [...]</description>
		<content:encoded><![CDATA[<p>[...] Interceptors in JUnit 2 JUnit 4.7: Interceptors: expected exceptions     Posted by Alistair Filed in Uncategorized   [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: A.Clark</title>
		<link>http://www.threeriversinstitute.org/blog/?p=155&#038;cpage=1#comment-1086</link>
		<dc:creator>A.Clark</dc:creator>
		<pubDate>Sat, 01 Aug 2009 11:07:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.threeriversinstitute.org/blog/?p=155#comment-1086</guid>
		<description>That&#039;s awesome ! I can&#039;t expect to use this new feature</description>
		<content:encoded><![CDATA[<p>That&#8217;s awesome ! I can&#8217;t expect to use this new feature</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: JUnit 4.7RC-1 Rules &#171; Cato&#8217;s Place</title>
		<link>http://www.threeriversinstitute.org/blog/?p=155&#038;cpage=1#comment-1055</link>
		<dc:creator>JUnit 4.7RC-1 Rules &#171; Cato&#8217;s Place</dc:creator>
		<pubDate>Fri, 24 Jul 2009 14:57:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.threeriversinstitute.org/blog/?p=155#comment-1055</guid>
		<description>[...] start with I begun reading Kent Beck&#8217;s blog entry about Inteceptors in JUnit which was originally written prior to the renaming of Inteceptors to [...]</description>
		<content:encoded><![CDATA[<p>[...] start with I begun reading Kent Beck&#8217;s blog entry about Inteceptors in JUnit which was originally written prior to the renaming of Inteceptors to [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: JUnit Max &#187; Blog Archive &#187; The Open/Closed/Open Principle</title>
		<link>http://www.threeriversinstitute.org/blog/?p=155&#038;cpage=1#comment-722</link>
		<dc:creator>JUnit Max &#187; Blog Archive &#187; The Open/Closed/Open Principle</dc:creator>
		<pubDate>Mon, 22 Jun 2009 11:45:37 +0000</pubDate>
		<guid isPermaLink="false">http://www.threeriversinstitute.org/blog/?p=155#comment-722</guid>
		<description>[...] thoroughly we made sure the new tests worked alongside older tests. For the recent introduction of interceptors, though, we carefully isolated the code that ran tests and made it modular before finding a new way [...]</description>
		<content:encoded><![CDATA[<p>[...] thoroughly we made sure the new tests worked alongside older tests. For the recent introduction of interceptors, though, we carefully isolated the code that ran tests and made it modular before finding a new way [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: The Green Bar &#187; Blog Archive &#187; JUnit 4.7: Interceptors: expected exceptions</title>
		<link>http://www.threeriversinstitute.org/blog/?p=155&#038;cpage=1#comment-580</link>
		<dc:creator>The Green Bar &#187; Blog Archive &#187; JUnit 4.7: Interceptors: expected exceptions</dc:creator>
		<pubDate>Wed, 27 May 2009 04:49:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.threeriversinstitute.org/blog/?p=155#comment-580</guid>
		<description>[...] the latest snapshot build of JUnit 4.7, we&#8217;ve re-implemented expected exceptions using Interceptors. Share and [...]</description>
		<content:encoded><![CDATA[<p>[...] the latest snapshot build of JUnit 4.7, we&#8217;ve re-implemented expected exceptions using Interceptors. Share and [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: JUnit Max &#187; Blog Archive &#187; Three Designing Bears</title>
		<link>http://www.threeriversinstitute.org/blog/?p=155&#038;cpage=1#comment-478</link>
		<dc:creator>JUnit Max &#187; Blog Archive &#187; Three Designing Bears</dc:creator>
		<pubDate>Wed, 06 May 2009 21:06:59 +0000</pubDate>
		<guid isPermaLink="false">http://www.threeriversinstitute.org/blog/?p=155#comment-478</guid>
		<description>[...] and skill). All this goes to reduce the cost of slow and careful design. Last week we added interceptors. This is a change that has been percolating for a couple of years. Taking that long to actually try [...]</description>
		<content:encoded><![CDATA[<p>[...] and skill). All this goes to reduce the cost of slow and careful design. Last week we added interceptors. This is a change that has been percolating for a couple of years. Taking that long to actually try [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: The Green Bar &#187; Blog Archive &#187; Interceptors in JUnit 4.7</title>
		<link>http://www.threeriversinstitute.org/blog/?p=155&#038;cpage=1#comment-474</link>
		<dc:creator>The Green Bar &#187; Blog Archive &#187; Interceptors in JUnit 4.7</dc:creator>
		<pubDate>Tue, 05 May 2009 20:16:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.threeriversinstitute.org/blog/?p=155#comment-474</guid>
		<description>[...] both of you that read this blog, and haven&#8217;t already seen it, there&#8217;s some fun stuff brewing in JUnit [...]</description>
		<content:encoded><![CDATA[<p>[...] both of you that read this blog, and haven&#8217;t already seen it, there&#8217;s some fun stuff brewing in JUnit [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Daniel Brolund</title>
		<link>http://www.threeriversinstitute.org/blog/?p=155&#038;cpage=1#comment-460</link>
		<dc:creator>Daniel Brolund</dc:creator>
		<pubDate>Thu, 30 Apr 2009 15:26:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.threeriversinstitute.org/blog/?p=155#comment-460</guid>
		<description>Looks like a giant leap in a good direction. How does the abstraction carry to suites?

I dream of being able to annotate a listener on the root suite, and then get all the events: before/after suite, test case, test method (fail/success).

Would that be possible?</description>
		<content:encoded><![CDATA[<p>Looks like a giant leap in a good direction. How does the abstraction carry to suites?</p>
<p>I dream of being able to annotate a listener on the root suite, and then get all the events: before/after suite, test case, test method (fail/success).</p>
<p>Would that be possible?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
