ghm.follow.systemInterface
Interface SystemInterface

All Known Implementing Classes:
DefaultSystemInterface

public interface SystemInterface

Various system calls are routed through an instance of this class; this enables test code to interject itself where appropriate by assigning a different instance of SystemInterface to FollowApp.

Author:
Greg Merrill

Method Summary
 void exit(int code)
          Used in lieu of System.exit();
 java.io.File getFileFromUser()
          Normally, this method should delegate to a file chooser or other appropriate file selection mechanism.
 

Method Detail

getFileFromUser

java.io.File getFileFromUser()
Normally, this method should delegate to a file chooser or other appropriate file selection mechanism. However, it can be overriden by tests to return temporary files.

Returns:
the File selected by the user

exit

void exit(int code)
Used in lieu of System.exit();

Parameters:
code - exit status code


Copyright © 2008. All Rights Reserved.