<html>
<head>
<style><!--
body {background-color:#ffffff;}
.file {border:1px solid #eeeeee;margin-top:1em;margin-bottom:1em;}
.pathname {font-family:monospace; float:right;}
.fileheader {margin-bottom:.5em;}
.diff {margin:0;}
.tasklist {padding:4px;border:1px dashed #000000;margin-top:1em;}
.tasklist ul {margin-top:0;margin-bottom:0;}
tr.alt {background-color:#eeeeee}
#added {background-color:#ddffdd;}
#addedchars {background-color:#99ff99;font-weight:bolder;}
tr.alt #added {background-color:#ccf7cc;}
#removed {background-color:#ffdddd;}
#removedchars {background-color:#ff9999;font-weight:bolder;}
tr.alt #removed {background-color:#f7cccc;}
#copied {background-color:#ccccff;}
tr.alt #copied {background-color:#bbbbf7;}
#info {color:#888888;}
#context {background-color:#eeeeee;}
td {padding-left:.3em;padding-right:.3em;}
tr.head {border-bottom-width:1px;border-bottom-style:solid;}
tr.head td {padding:0;padding-top:.2em;}
.task {background-color:#ffff00;}
.comment {white-space:-moz-pre-wrap;white-space:-pre-wrap;white-space:-o-pre-wrap;white-space:pre-wrap;word-wrap:break-word;padding:4px;border:1px dashed #000000;background-color:#ffffdd}
.error {color:red;}
hr {border-width:0px;height:2px;background:black;}
--></style>
</head>
<body>
<table cellspacing="0" cellpadding="0" border="0" rules="cols">
<tr class="head"><td colspan="5">Commit in <b><tt>metaas/trunk/src/test/java/uk/co/badgersinfoil/metaas/impl</tt></b></td></tr>
<tr><td><tt><a href="#file1">SourceFolderResourceRootTest.java</a></tt> </td><td></td><td align="right" id="added">+10</td><td align="right" id="removed">-6</td><td nowrap="nowrap" align="center">561 -> 562</td></tr>
</table>
<pre class="comment">
also test the case of a source file in a package folder
</pre>
<hr /><a name="file1" /><div class="file">
<span class="pathname">metaas/trunk/src/test/java/uk/co/badgersinfoil/metaas/impl</span><br />
<div class="fileheader"><big><b>SourceFolderResourceRootTest.java</b></big> <small id="info">561 -> 562</small></div>
<pre class="diff"><small id="info">--- trunk/src/test/java/uk/co/badgersinfoil/metaas/impl/SourceFolderResourceRootTest.java        2007-12-03 01:22:51 UTC (rev 561)
+++ trunk/src/test/java/uk/co/badgersinfoil/metaas/impl/SourceFolderResourceRootTest.java        2007-12-03 01:31:05 UTC (rev 562)
@@ -3,29 +3,33 @@
</small></pre><pre class="diff" id="context"> import java.io.File;
import java.io.IOException;
import java.util.List;
</pre><pre class="diff" id="added">+import org.apache.commons.io.FileUtils;
</pre><pre class="diff" id="context"> import junit.framework.TestCase;
public class SourceFolderResourceRootTest extends TestCase {
        private File tmpDir;
</pre><pre class="diff" id="removed">-        private File tmpFile;
</pre><pre class="diff" id="context">
        public void setUp() throws IOException {
                tmpDir = new File(System.getProperty("java.io.tmpdir"), "metaas-test");
                tmpDir.mkdir();
</pre><pre class="diff" id="removed">-                tmpFile = new File(tmpDir, "Test.as");
</pre><pre class="diff" id="added">+                <span id="addedchars">File </span>tmpFile = new File(tmpDir, "Test.as");
</pre><pre class="diff" id="context">                 tmpFile.createNewFile();
</pre><pre class="diff" id="added">+                File tmpPkg = new File(tmpDir, "pkg");
+                tmpPkg.mkdir();
+                File tmpFile2 = new File(tmpPkg, "Test2.as");
+                tmpFile2.createNewFile();
</pre><pre class="diff" id="context">         }
</pre><pre class="diff" id="removed">-        public void tearDown() {
-                tmpFile.delete();
-                tmpDir.delete();
</pre><pre class="diff" id="added">+        public void tearDown() throws IOException {
+                FileUtils.deleteDirectory(tmpDir);
</pre><pre class="diff" id="context">         }
        public void testIt() {
                SourceFolderResourceRoot resourceRoot = new SourceFolderResourceRoot(tmpDir);
                List qnames = resourceRoot.getDefinitionQNames();
</pre><pre class="diff" id="removed">-                assertEquals(<span id="removedchars">1</span>, qnames.size());
</pre><pre class="diff" id="added">+                assertEquals(<span id="addedchars">2</span>, qnames.size());
</pre><pre class="diff" id="context">                 assertEquals(new ASQName("Test"), qnames.get(0));
</pre><pre class="diff" id="added">+                assertEquals(new ASQName("pkg", "Test2"), qnames.get(1));
</pre><pre class="diff" id="context">         }
}
</pre><pre class="diff"><small id="info">\ No newline at end of file
</small></pre></div>
<center><small><a href="http://www.badgers-in-foil.co.uk/projects/cvsspam/" title="commit -> email">CVSspam</a> 0.2.12</small></center>
</body></html>