rlalfo / google-http-java-client

Automatically exported from code.google.com/p/google-http-java-client
0 stars 0 forks source link

New Sleeper interface #205

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
External references, such as a standards document, or specification?

http://javadoc.google-http-java-client.googlecode.com/hg/1.13.1-beta/com/google/
api/client/util/Clock.html

Java environments (e.g. Java 6, Android 2.3, App Engine, or All)?

All

Please describe the feature requested.

We will add a new Sleeper interface to use for requesting the current thread to 
sleep as specified in {@link Thread#sleep(long)}.  This will be useful for 
testing because we don't want real tests to actually sleep and instead want to 
be able to write assertions about the amount of time of sleep that was 
requested.  Sleeper interface should be used everywhere we are currently 
calling Thread.sleep including HttpRequest, but also BatchRequest and 
GoogleAccountCredential from the google-api-client project.

Original issue reported on code.google.com by yan...@google.com on 12 Mar 2013 at 5:14

GoogleCodeExporter commented 9 years ago

Original comment by yan...@google.com on 12 Mar 2013 at 6:30

GoogleCodeExporter commented 9 years ago
https://codereview.appspot.com/7443045/

Original comment by yan...@google.com on 13 Mar 2013 at 4:00

GoogleCodeExporter commented 9 years ago

Original comment by yan...@google.com on 13 Mar 2013 at 7:32