org.exolab.jmscts.report
Class ReportHelper

java.lang.Object
  |
  +--org.exolab.jmscts.report.ReportHelper

public final class ReportHelper
extends java.lang.Object

Helper class to map between types

Version:
$Revision: 1.4 $ $Date: 2004/02/02 03:50:24 $
Author:
Tim Anderson

Method Summary
static Behaviour getBehaviour(TestContext context)
          Maps the messaging behaviour in a TestContext to a Behaviour
static Context getContext(TestContext context)
          Maps a TestContext instance to a Context
static Factory getFactory(TestContext context)
          Maps the factory in a TestContext to a Factory
static Failure getFailure(java.lang.String description, java.lang.Throwable cause, java.lang.Throwable rootCause)
          Maps exceptions to a Failure
static Failure getFailure(java.lang.Throwable cause, java.lang.Throwable rootCause)
          Maps exceptions to a Failure
static MessageType getMessage(TestContext context)
          Maps the message in a TestContext to a MessageType
static java.lang.String getName(JMSTestCase test)
          Return a fully qualified name for a test case
static SessionType getSession(TestContext context)
          Maps the session in a TestContext to a SessionType
static TestRun getTestRun(JMSTestCase test)
          Maps a JMSTestCase instance to a TestRun
static TestRun getTestRun(JMSTestCase test, TestContext context)
          Maps a JMSTestCase instance to a TestRun, using the specified context
static TestRuns getTestRuns(JMSTestCase test)
          Maps a JMSTestCase instance to a TestRuns
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getTestRuns

public static TestRuns getTestRuns(JMSTestCase test)
Maps a JMSTestCase instance to a TestRuns
Parameters:
test - the test case
Returns:
a new TestRuns instance

getTestRun

public static TestRun getTestRun(JMSTestCase test)
Maps a JMSTestCase instance to a TestRun
Parameters:
test - the test case
Returns:
a new TestRun instance

getTestRun

public static TestRun getTestRun(JMSTestCase test,
                                 TestContext context)
Maps a JMSTestCase instance to a TestRun, using the specified context
Parameters:
test - the test case
context - the test context. May be null.
Returns:
a new TestRun instance

getFailure

public static Failure getFailure(java.lang.Throwable cause,
                                 java.lang.Throwable rootCause)
Maps exceptions to a Failure
Parameters:
cause - the exception to map
rootCause - the root cause of the exception. May be null
Returns:
the mapped exceptions

getFailure

public static Failure getFailure(java.lang.String description,
                                 java.lang.Throwable cause,
                                 java.lang.Throwable rootCause)
Maps exceptions to a Failure
Parameters:
description - a description of the failure
cause - the exception to map
rootCause - the root cause of the exception. May be null
Returns:
the mapped exceptions

getName

public static java.lang.String getName(JMSTestCase test)
Return a fully qualified name for a test case
Parameters:
test - the test case
Returns:
the fully qualified name of the test case

getContext

public static Context getContext(TestContext context)
Maps a TestContext instance to a Context
Parameters:
context - the test context
Returns:
the mapped context

getFactory

public static Factory getFactory(TestContext context)
Maps the factory in a TestContext to a Factory
Parameters:
context - the text context
Returns:
the mapped factory

getSession

public static SessionType getSession(TestContext context)
Maps the session in a TestContext to a SessionType
Parameters:
context - the text context
Returns:
the mapped session type, or null, if the context doesn't contain a session

getMessage

public static MessageType getMessage(TestContext context)
Maps the message in a TestContext to a MessageType
Parameters:
context - the text context
Returns:
the mapped message type, or null, if the context doesn't contain a message

getBehaviour

public static Behaviour getBehaviour(TestContext context)
Maps the messaging behaviour in a TestContext to a Behaviour
Parameters:
context - the text context
Returns:
the mapped behaviour, or null, if the context doesn't contain a MessagingBehaviour instance


Copyright © 2001-2004 JMS CTS Team. All Rights Reserved.