@Test void parseDateTimeShouldConsumeDateLiteral() throws Exception { ImapRequestStreamLineReader request = toRequest("\"09-Apr-2008 15:17:51 +0200\" any\n"); testee.parseDateTime(request); assertThat(request.atom()).isEqualTo("any"); }
@VisibleForTesting LocalDateTime parseDateTime(ImapRequestLineReader request) throws DecodingException { char next = request.nextWordChar(); if (next == '"') { return request.dateTime(); } return LocalDateTime.now(clock); }
AppendCommandParser extends AbstractImapCommandParser { @VisibleForTesting LocalDateTime parseDateTime(ImapRequestLineReader request) throws DecodingException { char next = request.nextWordChar(); if (next == '"') { return request.dateTime(); } return LocalDateTime.now(clock); } }
AppendCommandParser extends AbstractImapCommandParser { @VisibleForTesting LocalDateTime parseDateTime(ImapRequestLineReader request) throws DecodingException { char next = request.nextWordChar(); if (next == '"') { return request.dateTime(); } return LocalDateTime.now(clock); } AppendCommandParser(StatusResponseFactory statusResponseFactory, Clock clock); }
AppendCommandParser extends AbstractImapCommandParser { @VisibleForTesting LocalDateTime parseDateTime(ImapRequestLineReader request) throws DecodingException { char next = request.nextWordChar(); if (next == '"') { return request.dateTime(); } return LocalDateTime.now(clock); } AppendCommandParser(StatusResponseFactory statusResponseFactory, Clock clock);  }
AppendCommandParser extends AbstractImapCommandParser { @VisibleForTesting LocalDateTime parseDateTime(ImapRequestLineReader request) throws DecodingException { char next = request.nextWordChar(); if (next == '"') { return request.dateTime(); } return LocalDateTime.now(clock); } AppendCommandParser(StatusResponseFactory statusResponseFactory, Clock clock);   }