<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>refract.me &#187; school</title>
	<atom:link href="http://refract.me/tag/school/feed/" rel="self" type="application/rss+xml" />
	<link>http://refract.me</link>
	<description>reimagining computing and society</description>
	<lastBuildDate>Fri, 25 Jun 2010 05:27:51 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>JUnit</title>
		<link>http://refract.me/2010/02/03/junit/</link>
		<comments>http://refract.me/2010/02/03/junit/#comments</comments>
		<pubDate>Thu, 04 Feb 2010 04:13:47 +0000</pubDate>
		<dc:creator>Alison</dc:creator>
				<category><![CDATA[CS]]></category>
		<category><![CDATA[Class]]></category>
		<category><![CDATA[JUnit]]></category>
		<category><![CDATA[programming]]></category>
		<category><![CDATA[school]]></category>
		<category><![CDATA[testing]]></category>

		<guid isPermaLink="false">http://refract.me/?p=365</guid>
		<description><![CDATA[JUnit is a unit testing framework developed for Java programs. It&#8217;s not my favorite thing in the world. For starters, it only tests public methods. Which is a bit of a problem if from a development standpoint; many internal &#8220;heavy lifting&#8221; methods are not needed by outside classes and should be private. In addition, I [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.junit.org/">JUnit</a> is a unit testing framework developed for Java programs. It&#8217;s not my favorite thing in the world. For starters, it only tests public methods. Which is a bit of a problem if from a development standpoint; many internal &#8220;heavy lifting&#8221; methods are not needed by outside classes and should be private. In addition, I cannot use <a href="http://eclipse.org/">Eclipse</a>, my <acronym title="integrated development environment">IDE</acronym>, to debug as I do with other code.</p>
<p>For my software engineering course, I am creating a very simple Roman to Arabic numeral converter. (If anyone knows what the unicode character for Roman numeral 5000, a V with a line over it, I would appreciate it for accuracy.) It isn&#8217;t the converter program that is important. The purpose is to demonstrate <a href="http://en.wikipedia.org/wiki/Black_box_testing">black box</a> testing methodologies: testing without knowledge of the internals of a program.</p>
<p>I developed a test plan and wrote the test cases in JUnit, as instructed, before proceeding on to writing the actual converter. I then ran my tests. A couple failed and a hand full had an error. I rewrote the code; the class is small enough to justify it, rather than worry about where my sometimes failing  bug was.</p>
<p>Yet, I still had the same problems. So, I copied the short bits of code into a main() function to use the debugger. The debugger revealed no faults: my system produced the correct output. JUnit had produced a false negative. I didn&#8217;t know it could even do that. It did not occur across similar tests with identical assert statements, so I&#8217;m not sure what it could be.</p>
]]></content:encoded>
			<wfw:commentRss>http://refract.me/2010/02/03/junit/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
