Class CurrentTimeExtractor

  extended by org.mactor.extensions.CurrentTimeExtractor
All Implemented Interfaces:

public class CurrentTimeExtractor
extends java.lang.Object
implements ValueCommand

Extracts the current time on the format: 'yyyy-MM-dd'T'HH:mm:ss.SSSZ'
A single parameter can be provided to specify the number of minutes to add to or substract from the current time (5 adds five minuts -120 subtracts to hours )

Lars Ivar Almli

Constructor Summary
Method Summary
 java.lang.String extractValue(TestContext context, java.util.List<java.lang.String> params)
          The method invoked by the testrunner to perform the action node.
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail


public CurrentTimeExtractor()
Method Detail


public java.lang.String extractValue(TestContext context,
                                     java.util.List<java.lang.String> params)
                              throws MactorException
Description copied from interface: ValueCommand
The method invoked by the testrunner to perform the action node.

Specified by:
extractValue in interface ValueCommand
context - contains information about the context of the test that might be useful (such as all messages sent/received so far in the test)
params - the list of parameteres specifed for the given node in the test-spec xml (after the ##{...} substitution has been performed)
MactorException - if some problem occured (this will case the test to fail)

Copyright © 2008. All Rights Reserved.