SmartDroidDeveloper / google-api-java-client

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

Mocked methods should declare thrown IOException #131

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Version of google-api-java-client (e.g. 1.3.1-alpha)?

1.3.1-alpha

Java environment (e.g. Java 6, Android 2.3, App Engine 1.4.2)?

All

Describe the problem.

The following methods do not declare that they may throw IOException, which 
means subclasses cannot throw them, which is a problem for testing:

MockHttpContent.getLength()
MockHttpTransport.build*Request()
MockLowLevelRequest.setContent()
MockLowLevelRequest.execute()
MockLowLevelResponse.getContent()

How would you expect it to be fixed?

These methods should declare that they throw IOException.

Original issue reported on code.google.com by yan...@google.com on 24 Feb 2011 at 4:46

GoogleCodeExporter commented 9 years ago

Original comment by yan...@google.com on 24 Feb 2011 at 10:12