Yes, but new Date() is not suitable for testing, and does not supports
remote time servers.

- Andrés

On 21 jul, 10:08, "Dhanji R. Prasanna" <[email protected]> wrote:
> You mean like new Date()?
>
> On Tue, Jul 21, 2009 at 10:29 PM, Andrés Testi 
> <[email protected]>wrote:
>
>
>
> > What's the best way to provide the current timestamp with Guice? I
> > think an specific time Provider could be a right choice, but don't
> > know if it is the best choice for tests. An @Now annotation, could be
> > usefull in Request scopes.
> > Thanks in advance.
>
> > - Andrés
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"google-guice" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/google-guice?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to