cvs commit: spice/sandbox/repository/componenthaus/src/tests/org/componenthaus/util/file MockFile.java

Mike Hogan <[email protected]>
Newsgroups gmane.comp.java.spice.cvs
Message-ID <[email protected]>
hogie       03/11/03 13:15:30

  Modified:    sandbox/repository/componenthaus/src/tests/org/componenthaus/util/file
                        MockFile.java
  Log:
  Can submit more than one interface per jar
  
  Revision  Changes    Path
  1.3       +9 -0      spice/sandbox/repository/componenthaus/src/tests/org/componenthaus/util/file/MockFile.java
  
  Index: MockFile.java
  ===================================================================
  RCS file: /cvsroot/spice/spice/sandbox/repository/componenthaus/src/tests/org/componenthaus/util/file/MockFile.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- MockFile.java	26 Oct 2003 19:01:23 -0000	1.2
  +++ MockFile.java	3 Nov 2003 21:15:30 -0000	1.3
  @@ -4,6 +4,7 @@
   
   public class MockFile extends File {
       private boolean preparedExists = false;
  +    private boolean preparedIsDirectory = false;
       private int setupLength = 0;
   
       public MockFile() {
  @@ -24,5 +25,13 @@
   
       public long length() {
           return setupLength;
  +    }
  +
  +    public void setupPreparedIsDirectory(boolean b) {
  +        this.preparedIsDirectory = b;
  +    }
  +
  +    public boolean isDirectory() {
  +        return preparedIsDirectory;
       }
   }
  
  
  


-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?   SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.