From: Jeff M. <cus...@us...> - 2003-04-10 10:34:48
|
Update of /cvsroot/mockobjects/mockobjects-java/src/jdk/common/com/mockobjects/io In directory sc8-pr-cvs1:/tmp/cvs-serv24851/src/jdk/common/com/mockobjects/io Modified Files: MockFile.java Log Message: Implemented getAbsolutePath Index: MockFile.java =================================================================== RCS file: /cvsroot/mockobjects/mockobjects-java/src/jdk/common/com/mockobjects/io/MockFile.java,v retrieving revision 1.5 retrieving revision 1.6 diff -u -r1.5 -r1.6 --- MockFile.java 18 Mar 2003 14:28:45 -0000 1.5 +++ MockFile.java 10 Apr 2003 10:34:44 -0000 1.6 @@ -26,6 +26,7 @@ private final ReturnValue myFilesToReturn = new ReturnValue("files"); private final ReturnValue file = new ReturnValue("real file"); private final ReturnValue myPath = new ReturnValue("path"); + private final ReturnValue absolutePath = new ReturnValue("absolute path"); public void setupGetName(final String name) { this.fileName.setValue(name); @@ -79,9 +80,12 @@ return false; } + public void setupGetAbsolutePath(String absolutePath) { + this.absolutePath.setValue(absolutePath); + } + public String getAbsolutePath() { - notImplemented(); - return null; + return (String)absolutePath.getValue(); } public File getAbsoluteFile() { |