This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 207896 - RFS cannot pass FS TCK tests testToFile() and testToFileObject()
Summary: RFS cannot pass FS TCK tests testToFile() and testToFileObject()
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Filesystems (show other bugs)
Version: 7.2
Hardware: PC Solaris
: P2 normal (vote)
Assignee: Alexander Simon
URL:
Keywords:
Depends on:
Blocks: 207619
  Show dependency tree
 
Reported: 2012-01-30 09:04 UTC by Alexander Simon
Modified: 2012-01-30 14:07 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Simon 2012-01-30 09:04:17 UTC
Class org.openide.filesystems.FileUtilTestHidden has 2 suspicious tests that are
failed for remote FS.

Both tests assume that java.io.File exist for FileObject (FileUtil.toFile(fo)).
This assumption is false for remote FS.

So tests should be fixed or removed from FS TCK.
Comment 1 Alexander Simon 2012-01-30 13:51:35 UTC
Hello Alexander,

can you split FileUtilTestHidden, introduce new class FileUtilJavaIOFileHidden and move the java.io.File test methods into it?

Please make sure that whereever FileUtilTestHidden is used, you also use the new class (including masterfs). Of course, in remotefs, you'd use just FileUtilTestHidden.

Thanks.

-jt
Comment 2 Alexander Simon 2012-01-30 14:07:03 UTC
fixed, change set:
http://hg.netbeans.org/cnd-main/rev/824b58f11d0e