org.jdiagnose.library
Class ExistsOnClasspathDiagnostic

java.lang.Object
  extended byorg.jdiagnose.DiagnosticUnit
      extended byorg.jdiagnose.library.ExistsOnClasspathDiagnostic
All Implemented Interfaces:
Diagnostic, DiagnosticContainer, DiagnosticUnitLifeCycle

public class ExistsOnClasspathDiagnostic
extends DiagnosticUnit

Ensures that a particular file is available on the classpath. User: jamie Date: May 31, 2004 Time: 8:38:08 PM


Constructor Summary
ExistsOnClasspathDiagnostic()
          Default Constructor.
ExistsOnClasspathDiagnostic(java.lang.String filename)
          Constructs a new diagnostic with a filename.
ExistsOnClasspathDiagnostic(java.lang.String name, java.lang.String filename)
          Create a new diagnostic with a fqn and a filename to check
 
Method Summary
 void diagnoseExistence()
          Checks for the existence of filename on the classpath.
 java.lang.String getFilename()
           
 void setFilename(java.lang.String filename)
           
 
Methods inherited from class org.jdiagnose.DiagnosticUnit
assertEquals, assertEquals, assertNotNull, assertNotNull, assertNull, assertNull, assertTrue, assertTrue, diagnose, getDiagnosticContainers, getDiagnostics, getName, setUp, tearDown
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExistsOnClasspathDiagnostic

public ExistsOnClasspathDiagnostic(java.lang.String name,
                                   java.lang.String filename)
Create a new diagnostic with a fqn and a filename to check

Parameters:
name - the name of this diagnostic
filename - the filename to look for

ExistsOnClasspathDiagnostic

public ExistsOnClasspathDiagnostic()
Default Constructor. Filename property MUST be set.


ExistsOnClasspathDiagnostic

public ExistsOnClasspathDiagnostic(java.lang.String filename)
Constructs a new diagnostic with a filename.

Parameters:
filename - the filename to look for
Method Detail

diagnoseExistence

public void diagnoseExistence()
Checks for the existence of filename on the classpath.


getFilename

public java.lang.String getFilename()
Returns:
Returns the filename.

setFilename

public void setFilename(java.lang.String filename)
Parameters:
filename - The filename to set.


Copyright © 2004-2005 Grape Design Limited. All Rights Reserved.