net.avh4.framework.data.test
Class ClasspathResourcesExternalStorage

java.lang.Object
  extended by net.avh4.framework.data.test.ClasspathResourcesExternalStorage
All Implemented Interfaces:
ExternalStorage

public class ClasspathResourcesExternalStorage
extends Object
implements ExternalStorage

This can be used for unit testing to simulate files on an external storage device.


Constructor Summary
ClasspathResourcesExternalStorage(String root)
           
 
Method Summary
 void allowFile(String filename)
           
 List<String> getFiles()
           
 String getString(String filename)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClasspathResourcesExternalStorage

public ClasspathResourcesExternalStorage(String root)
Method Detail

getString

public String getString(String filename)
Specified by:
getString in interface ExternalStorage

getFiles

public List<String> getFiles()
Specified by:
getFiles in interface ExternalStorage

allowFile

public void allowFile(String filename)


Copyright © 2012. All Rights Reserved.