DevFaqTestUsingSystemFileSystem

How do I test something which uses the System Filesystem?

There is a fake System FileSystem provided by as soon as FileSystem API is on classpath. It understands NetBeans layer definitions and is generally suitable for running unit tests.

In case you see difference from expected behavior:

  • Try to run tests in real mode
  • Report NetBeans a bug (product platform/filesystems) with a test case
Not logged in. Log in, Register

By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo