public void testGetDateAndTime(){
  X509CRLSelector selector=new X509CRLSelector();
  assertNull("Initially the dateAndTime criteria should be null.",selector.getDateAndTime());
  Date date=new Date(200);
  selector.setDateAndTime(date);
  assertTrue("The result should be equal to specified.",date.equals(selector.getDateAndTime()));
}

public void testGetDateAndTime ( ) { X509CRLSelector selector = new X509CRLSelector ( ) ; assertNull ( "Initially the dateAndTime criteria should be null." , selector . getDateAndTime ( ) ) ; Date date = new Date ( 200 ) ; selector . setDateAndTime ( date ) ; assertTrue ( "The result should be equal to specified." , date . equals ( selector . getDateAndTime ( ) ) ) ; }
getdateandtime ( ) method testing . tests if the method return null in the case of not specified dateandtime criteria , and if the returned value corresponds to the specified one .
