[CVS spice] Get FileIO unit test working in a cross platform manner rather than failing on windows
pdonald-yCVjj/[email protected] 11 Jul 2004 23:37:55 -0000
| Newsgroups | gmane.comp.java.spice.cvs |
|---|---|
| Message-ID | <[email protected]> |
<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;}
#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 {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="4">Commit in <b><tt>spice/components/salt/src/test/org/codehaus/spice/salt/io</tt></b><span id="info"> on MAIN</span></td></tr>
<tr><td><tt><a href="#file1">FileUtil2TestCase.java</a></tt></td><td align="right" id="added">+3</td><td align="right" id="removed">-8</td><td nowrap="nowrap" align="center">1.1 -> 1.2</td></tr>
</table>
<pre class="comment">
Get FileIO unit test working in a cross platform manner rather than failing on windows
</pre>
<hr /><a name="file1" /><div class="file">
<span class="pathname">spice/components/salt/src/test/org/codehaus/spice/salt/io<br /></span>
<div class="fileheader"><big><b>FileUtil2TestCase.java</b></big> <small id="info">1.1 -> 1.2</small></div>
<pre class="diff"><small id="info">diff -u -r1.1 -r1.2
--- FileUtil2TestCase.java 2 Dec 2003 02:15:05 -0000 1.1
+++ FileUtil2TestCase.java 11 Jul 2004 23:37:54 -0000 1.2
@@ -16,16 +16,11 @@
</small></pre><pre class="diff" id="context">
/**
* @author Peter Donald
</pre><pre class="diff" id="removed">- * @version $Revision: 1.1 $ $Date: 2003/12/02 02:15:05 $
</pre><pre class="diff" id="added">+ * @version $Revision: 1.2 $ $Date: 2004/07/11 23:37:54 $
</pre><pre class="diff" id="context"> */
public class FileUtil2TestCase
extends TestCase
{
</pre><pre class="diff" id="removed">- public FileUtil2TestCase( String name )
- {
- super( name );
- }
-
</pre><pre class="diff" id="context"> public void testResolveFileSet()
throws Exception
{
</pre><pre class="diff"><small id="info">@@ -324,14 +319,14 @@
</small></pre><pre class="diff" id="context"> FileUtil.removePath( "foo.txt" ) );
assertEquals( "Remove path",
"c.jpg",
</pre><pre class="diff" id="removed">- FileUtil.removePath( "a/b/c.jpg" ) );
</pre><pre class="diff" id="added">+ FileUtil.removePath( "a" + File.separator + "b" + File.separator + "c.jpg" ) );
</pre><pre class="diff" id="context"> }
public void testGetPath()
throws Exception
{
assertEquals( "Get path", "", FileUtil.getPath( "foo.txt" ) );
</pre><pre class="diff" id="removed">- assertEquals( "Get path", "a/b", FileUtil.getPath( "a/b/c.jpg" ) );
</pre><pre class="diff" id="added">+ assertEquals( "Get path", "a" + File.separator + "b", FileUtil.getPath( "a" + File.separator + "b" + File.separator + "c.jpg" ) );
</pre><pre class="diff" id="context"> }
private File genTestDirectory()
</pre></div>
<center><small><a href="http://www.badgers-in-foil.co.uk/projects/cvsspam/" title="commit -> email">CVSspam</a> 0.2.8</small></center>
</body></html>