Update of /cvsroot/squirrel-sql/sql12/test/src/net/sourceforge/squirrel_sql/fw/util
In directory fdv4jf1.ch3.sourceforge.com:/tmp/cvs-serv26887/test/src/net/sourceforge/squirrel_sql/fw/util
Modified Files:
FileWrapperImplTest.java
Log Message:
Fix test failure for trivial difference.
Index: FileWrapperImplTest.java
===================================================================
RCS file: /cvsroot/squirrel-sql/sql12/test/src/net/sourceforge/squirrel_sql/fw/util/FileWrapperImplTest.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** FileWrapperImplTest.java 30 Dec 2008 17:40:34 -0000 1.2
--- FileWrapperImplTest.java 14 Nov 2009 19:01:55 -0000 1.3
***************
*** 52,56 ****
@Test
public void testGetAbsolutePath() {
! assertEquals(tmpDir, classUnderTest.getAbsolutePath());
}
--- 52,62 ----
@Test
public void testGetAbsolutePath() {
! // Don't fail if the only difference is a slash on the end of the path
! if (!classUnderTest.getAbsolutePath().endsWith("\\") && tmpDir.endsWith("\\"))
! {
! assertEquals(tmpDir, classUnderTest.getAbsolutePath()+"\\");
! } else {
! assertEquals(tmpDir, classUnderTest.getAbsolutePath());
! }
}
|