org.mule.tck.probe.file
Class FileExists

java.lang.Object
  extended by org.mule.tck.probe.file.FileExists
All Implemented Interfaces:
Probe

public class FileExists
extends Object
implements Probe

Checks that a given file exists in the file system


Constructor Summary
FileExists(File target)
           
 
Method Summary
 String describeFailure()
          Describes the cause of the criteria failure for further analysis.
 boolean isSatisfied()
          Indicates wheter or not the specified criteria was met or not.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FileExists

public FileExists(File target)
Method Detail

isSatisfied

public boolean isSatisfied()
Description copied from interface: Probe
Indicates wheter or not the specified criteria was met or not.

Specified by:
isSatisfied in interface Probe
Returns:
true if the criteria is satisfied.

describeFailure

public String describeFailure()
Description copied from interface: Probe
Describes the cause of the criteria failure for further analysis.

Specified by:
describeFailure in interface Probe
Returns:
the error message.


Copyright © 2003-2014 MuleSoft, Inc.. All Rights Reserved.