directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kiran Ayyagari <>
Subject Re: GenericIndexTest testSetGetWrkDirPath failing on Windows XP
Date Tue, 14 Dec 2010 19:24:22 GMT
On Tue, Dec 14, 2010 at 9:14 PM,  <> wrote:
> In ""  the test
> "testSetGetWrkDirPath" is failing on the AssertEquals at line 116
> zzzDir.getPath() = "C:\DOCUME~1\feezelr\LOCALS~1\Temp\zzz"
> index.getWkDirPath().getPath() = "/C:/DOCUME~1/feezelr/LOCALS~1/Temp/zzz"
> Clearly these are the same, yet they don't match.

can you test by replacing the assertion with the below one
assertEquals( URI.create( zzzDir.getPath() ).toString(),
index.getWkDirPath().getPath() );

the index.getWkDirPath().getPath() is returning a URI now using the
File.getPath() on windows has
issues cause it has this <drive>:\XXX syntax

This is an e-mail from
> General Dynamics Land Systems. It is for the intended recipient only and may
> contain confidential and privileged information. No one else may read,
> print, store, copy, forward or act in reliance on it or its attachments. If
> you are not the intended recipient, please return this message to the sender
> and delete the message and any attachments from your computer. Your
> cooperation is appreciated.

Kiran Ayyagari

View raw message