org.jdiagnose.library
Class FailingDiagnostic

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

public class FailingDiagnostic
extends DiagnosticUnit

A Diagnostic that always fails. Useful to test what happens when Diagnostics fail (e.g. if you're sending emails on failure). User: jamie Date: Jun 4, 2004 Time: 7:37:33 PM


Constructor Summary
FailingDiagnostic()
          Default Constructor
FailingDiagnostic(java.lang.String name)
          Construct with new fqn
 
Method Summary
 void diagnoseFailure()
          Diagnose a failure
 
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

FailingDiagnostic

public FailingDiagnostic()
Default Constructor


FailingDiagnostic

public FailingDiagnostic(java.lang.String name)
Construct with new fqn

Parameters:
name - the fully qualified name of this diagnostic
Method Detail

diagnoseFailure

public void diagnoseFailure()
                     throws DiagnosticException
Diagnose a failure

Throws:
DiagnosticException - always thrown.


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