001 package org.nanocontainer.testmodel; 002 003 import java.io.File; 004 005 /** 006 * Used for testing permissions. 007 * 008 * @author Paul Hammant 009 * @version $Revision: 2614 $ 010 */ 011 public class FileSystemUsing { 012 013 public FileSystemUsing() { 014 File afile = File.listRoots()[0]; 015 System.out.println("--> " + afile.getAbsolutePath()); 016 new File(afile,"foo-bar-directory").mkdirs(); 017 throw new RuntimeException("Whoa, should have barfed with access error"); 018 } 019 020 }