se.citerus.dddsample.application.util
Class DateTestUtil

java.lang.Object
  extended by se.citerus.dddsample.application.util.DateTestUtil

public final class DateTestUtil
extends java.lang.Object

A few utils for working with Date in tests.


Method Summary
static java.util.Date toDate(java.lang.String date)
           
static java.util.Date toDate(java.lang.String date, java.lang.String time)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

toDate

public static java.util.Date toDate(java.lang.String date)
Parameters:
date - date string as yyyy-MM-dd
Returns:
Date representation

toDate

public static java.util.Date toDate(java.lang.String date,
                                    java.lang.String time)
Parameters:
date - date string as yyyy-MM-dd
time - time string as HH:mm
Returns:
Date representation


Copyright © 2009. All Rights Reserved.